Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

PropertyTemplate< T > Class Template Reference

Inheritance diagram for PropertyTemplate< T >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void evaluate ()
 PropertyTemplate (T &property_)
 PropertyTemplate (T &property_, const T &defaultValue_)

Protected Member Functions

virtual T parse (const TextPropertyGroup::Entry &entry) const
virtual T operation_mult (const TextPropertyGroup::Entry &entry) const
virtual T operation_add (const TextPropertyGroup::Entry &entry) const
virtual T operation_sub (const TextPropertyGroup::Entry &entry) const
virtual T operation_eq (const TextPropertyGroup::Entry &entry) const

Protected Attributes

T & property
defaultValue

template<class T>
class PropertyTemplate< T >


Constructor & Destructor Documentation

template<class T>
PropertyTemplate< T >::PropertyTemplate T &  property_  )  [inline]
 

Definition at line 60 of file textfile_evaluation.cpp.

template<class T>
PropertyTemplate< T >::PropertyTemplate T &  property_,
const T &  defaultValue_
[inline]
 

Definition at line 61 of file textfile_evaluation.cpp.


Member Function Documentation

template<class T>
void PropertyTemplate< T >::evaluate  )  [virtual]
 

Implements PropertyContainer::Property.

Definition at line 686 of file textfile_evaluation.cpp.

References PropertyTemplate< T >::defaultValue, PropertyContainer::Property::evaluated, PropertyContainer::Property::findEntry(), PropertyContainer::isReading(), PropertyTemplate< T >::parse(), PropertyTemplate< T >::property, PropertyContainer::Property::propertyContainer, and PropertyContainer::Property::writeProperty().

template<class T>
T PropertyTemplate< T >::operation_add const TextPropertyGroup::Entry entry  )  const [protected, virtual]
 

Reimplemented in IntegerProperty, FloatProperty, StringProperty, ValArrayProperty< T >, TagArrayProperty, TagIntProperty, ValArrayProperty< double >, and ValArrayProperty< int >.

Definition at line 671 of file textfile_evaluation.cpp.

References T.

Referenced by PropertyTemplate< T >::parse().

template<class T>
T PropertyTemplate< T >::operation_eq const TextPropertyGroup::Entry entry  )  const [protected, virtual]
 

Reimplemented in IntegerProperty, FloatProperty, BoolProperty, StringProperty, StringArrayProperty, IntegerArrayProperty, DoubleArrayProperty, IntRangeArrayProperty, TagArrayProperty, TagIntProperty, NamedIntProperty, ASCImageProperty, and ASCImageArrayProperty.

Definition at line 657 of file textfile_evaluation.cpp.

References T.

Referenced by PropertyTemplate< T >::parse().

template<class T>
T PropertyTemplate< T >::operation_mult const TextPropertyGroup::Entry entry  )  const [protected, virtual]
 

Reimplemented in IntegerProperty, FloatProperty, ValArrayProperty< T >, ValArrayProperty< double >, and ValArrayProperty< int >.

Definition at line 664 of file textfile_evaluation.cpp.

References T.

Referenced by PropertyTemplate< T >::parse().

template<class T>
T PropertyTemplate< T >::operation_sub const TextPropertyGroup::Entry entry  )  const [protected, virtual]
 

Reimplemented in IntegerProperty, ValArrayProperty< T >, TagArrayProperty, TagIntProperty, ValArrayProperty< double >, and ValArrayProperty< int >.

Definition at line 678 of file textfile_evaluation.cpp.

References T.

Referenced by PropertyTemplate< T >::parse().

template<class T>
T PropertyTemplate< T >::parse const TextPropertyGroup::Entry entry  )  const [protected, virtual]
 

Definition at line 627 of file textfile_evaluation.cpp.

References TextPropertyGroup::Entry::add_eq, TextPropertyGroup::Entry::alias_all, PropertyTemplate< T >::defaultValue, TextPropertyGroup::Entry::eq, PropertyContainer::error(), TextPropertyGroup::Entry::mult_eq, TextPropertyGroup::Entry::op, PropertyTemplate< T >::operation_add(), PropertyTemplate< T >::operation_eq(), PropertyTemplate< T >::operation_mult(), PropertyTemplate< T >::operation_sub(), TextFormatParser::operations, PropertyContainer::Property::propertyContainer, and TextPropertyGroup::Entry::sub_eq.

Referenced by PropertyTemplate< T >::evaluate(), StringProperty::operation_add(), FloatProperty::operation_add(), IntegerProperty::operation_add(), FloatProperty::operation_mult(), IntegerProperty::operation_mult(), and IntegerProperty::operation_sub().


Member Data Documentation

template<class T>
T PropertyTemplate< T >::defaultValue [protected]
 

Definition at line 48 of file textfile_evaluation.cpp.

Referenced by PropertyTemplate< T >::evaluate(), and PropertyTemplate< T >::parse().

template<class T>
T& PropertyTemplate< T >::property [protected]
 

Definition at line 47 of file textfile_evaluation.cpp.

Referenced by PropertyTemplate< T >::evaluate(), ASCImageArrayProperty::toString(), ASCImageProperty::toString(), StringArrayProperty::toString(), StringProperty::toString(), FloatProperty::toString(), and IntegerProperty::toString().


The documentation for this class was generated from the following file:
Generated on Tue Jun 24 02:20:03 2008 for Advanced Strategic Command by  doxygen 1.4.2