PropertyContainer::Property Class Reference

#include <textfile_evaluation.h>

Inheritance diagram for PropertyContainer::Property:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~Property ()
virtual void evaluate ()=0
void setName (const ASCString &name_, const ASCString &lastName_)
const ASCStringgetLastName ()
void setPropertyContainer (PropertyContainer *propertyContainer_)

Public Attributes

bool evaluated

Protected Member Functions

virtual ASCString toString () const=0
void findEntry ()
virtual bool hasDefault ()
void writeProperty ()
 Property (bool defaultValueAvail_)

Protected Attributes

ASCString name
ASCString lastName
PropertyContainerpropertyContainer
TextPropertyGroup::Entryentry
bool defaultValueAvail

Detailed Description

Definition at line 51 of file textfile_evaluation.h.


Constructor & Destructor Documentation

PropertyContainer::Property::Property ( bool  defaultValueAvail_  )  [inline, protected]

Definition at line 63 of file textfile_evaluation.h.

virtual PropertyContainer::Property::~Property (  )  [inline, virtual]

Definition at line 66 of file textfile_evaluation.h.


Member Function Documentation

virtual ASCString PropertyContainer::Property::toString (  )  const [protected, pure virtual]

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

Referenced by writeProperty().

void PropertyContainer::Property::findEntry (  )  [protected]

Definition at line 606 of file textfile_evaluation.cpp.

References entry, PropertyContainer::error(), fatalError(), TextPropertyGroup::find(), hasDefault(), name, propertyContainer, PropertyContainer::textPropertyGroup, and ASCString::toLower().

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

virtual bool PropertyContainer::Property::hasDefault (  )  [inline, protected, virtual]

Reimplemented in IntegerArrayProperty.

Definition at line 61 of file textfile_evaluation.h.

References defaultValueAvail.

Referenced by findEntry().

void PropertyContainer::Property::writeProperty (  )  [protected]

Definition at line 620 of file textfile_evaluation.cpp.

References propertyContainer, toString(), and PropertyContainer::writeProperty().

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

virtual void PropertyContainer::Property::evaluate (  )  [pure virtual]

Implemented in PropertyTemplate< T >, PropertyTemplate< std::bitset< 64 > >, PropertyTemplate< vector< Surface > >, PropertyTemplate< double >, PropertyTemplate< Surface >, PropertyTemplate< ASCString >, PropertyTemplate< vector< int > >, PropertyTemplate< int >, PropertyTemplate< vector< IntRange > >, PropertyTemplate< vector< double > >, PropertyTemplate< vector< T > >, PropertyTemplate< vector< ASCString > >, and PropertyTemplate< bool >.

void PropertyContainer::Property::setName ( const ASCString name_,
const ASCString lastName_ 
)

Definition at line 599 of file textfile_evaluation.cpp.

References lastName, name, and ASCString::toLower().

const ASCString& PropertyContainer::Property::getLastName (  )  [inline]

Definition at line 70 of file textfile_evaluation.h.

References lastName.

void PropertyContainer::Property::setPropertyContainer ( PropertyContainer propertyContainer_  )  [inline]

Definition at line 71 of file textfile_evaluation.h.

References propertyContainer.


Member Data Documentation

ASCString PropertyContainer::Property::name [protected]

Definition at line 53 of file textfile_evaluation.h.

Referenced by findEntry(), ASCImageArrayProperty::operation_eq(), NamedIntProperty::operation_eq(), TagIntProperty::operation_eq(), TagArrayProperty::operation_eq(), BoolProperty::operation_eq(), IntegerProperty::operation_eq(), and setName().

ASCString PropertyContainer::Property::lastName [protected]

Definition at line 54 of file textfile_evaluation.h.

Referenced by getLastName(), and setName().

PropertyContainer* PropertyContainer::Property::propertyContainer [protected]

Definition at line 55 of file textfile_evaluation.h.

Referenced by PropertyTemplate< T >::evaluate(), findEntry(), ValArrayProperty< T >::operation_add(), ASCImageArrayProperty::operation_eq(), ASCImageProperty::operation_eq(), NamedIntProperty::operation_eq(), TagIntProperty::operation_eq(), TagArrayProperty::operation_eq(), BoolProperty::operation_eq(), ValArrayProperty< T >::operation_mult(), ValArrayProperty< T >::operation_sub(), PropertyTemplate< T >::parse(), setPropertyContainer(), and writeProperty().

TextPropertyGroup::Entry* PropertyContainer::Property::entry [protected]

Definition at line 56 of file textfile_evaluation.h.

Referenced by PropertyTemplate< T >::evaluate(), findEntry(), TagIntProperty::operation_add(), TagArrayProperty::operation_add(), ValArrayProperty< T >::operation_add(), StringProperty::operation_add(), FloatProperty::operation_add(), IntegerProperty::operation_add(), PropertyTemplate< T >::operation_add(), ASCImageArrayProperty::operation_eq(), ASCImageProperty::operation_eq(), NamedIntProperty::operation_eq(), TagIntProperty::operation_eq(), TagArrayProperty::operation_eq(), IntRangeArrayProperty::operation_eq(), DoubleArrayProperty::operation_eq(), IntegerArrayProperty::operation_eq(), StringArrayProperty::operation_eq(), StringProperty::operation_eq(), BoolProperty::operation_eq(), FloatProperty::operation_eq(), IntegerProperty::operation_eq(), PropertyTemplate< T >::operation_eq(), ValArrayProperty< T >::operation_mult(), FloatProperty::operation_mult(), IntegerProperty::operation_mult(), PropertyTemplate< T >::operation_mult(), TagIntProperty::operation_sub(), TagArrayProperty::operation_sub(), ValArrayProperty< T >::operation_sub(), IntegerProperty::operation_sub(), PropertyTemplate< T >::operation_sub(), and PropertyTemplate< T >::parse().

bool PropertyContainer::Property::defaultValueAvail [protected]

Definition at line 60 of file textfile_evaluation.h.

Referenced by hasDefault().

bool PropertyContainer::Property::evaluated

Definition at line 66 of file textfile_evaluation.h.

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


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:47:17 2012 for Advanced Strategic Command by  doxygen 1.5.1