Advanced Strategic Command
Classes | Public Types | Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Friends | List of all members
PropertyContainer Class Referenceabstract

#include <textfile_evaluation.h>

Inheritance diagram for PropertyContainer:
Inheritance graph
[legend]

Classes

class  Property
 

Public Types

typedef PointerList< Property * > Properties
 

Public Member Functions

virtual void openBracket (const ASCString &name)
 
virtual void closeBracket ()
 
ASCString getNameStack ()
 
void addString (const ASCString &name, ASCString &property)
 
void addString (const ASCString &name, ASCString &property, const ASCString &defaultValue)
 
void addStringArray (const ASCString &name, vector< ASCString > &property)
 
void addInteger (const ASCString &name, int &property)
 
void addInteger (const ASCString &name, int &property, int defaultValue)
 
void addDFloat (const ASCString &name, double &property)
 
void addDFloat (const ASCString &name, double &property, double defaultValue)
 
void addIntegerArray (const ASCString &name, vector< int > &property, bool required=true)
 
void addDFloatArray (const ASCString &name, vector< double > &property)
 
void addDFloatArray (const ASCString &name, vector< int > &property)
 
void addIntRangeArray (const ASCString &name, vector< IntRange > &property, bool required=true)
 
void addTagArray (const ASCString &name, BitSet &property, int tagNum, const char **tags, bool inverted=false)
 
void addTagInteger (const ASCString &name, int &property, int tagNum, const char **tags, bool inverted=false)
 
void addTagInteger (const ASCString &name, int &property, int tagNum, const char **tags, int defaultValue, bool inverted=false)
 
void addNamedInteger (const ASCString &name, int &property, int tagNum, const char **tags)
 
void addNamedInteger (const ASCString &name, int &property, int tagNum, const char **tags, int defaultValue)
 
void addBreakpoint ()
 
void addImage (const ASCString &name, Surface &property, ASCString &fileName, bool applyFieldMask)
 
void addImageArray (const ASCString &name, vector< Surface > &property, ASCString &fileName)
 
void addBool (const ASCString &name, bool &property)
 
void addBool (const ASCString &name, bool &property, bool defaultValue)
 
void storeContext (const ASCString &label)
 
bool restoreContext (const ASCString &label)
 
bool isReading ()
 
void warning (const ASCString &errmsg)
 
void error (const ASCString &errmsg)
 
bool find (const ASCString &name)
 
virtual ASCString getFileName ()=0
 
virtual ASCString getArchive ()=0
 
virtual ~PropertyContainer ()
 
virtual ASCString getLocation ()=0
 

Public Attributes

Properties properties
 

Protected Types

typedef list< ASCStringLevel
 
typedef map< ASCString, pair
< int, Level > > 
StoredContext
 

Protected Member Functions

 PropertyContainer (const ASCString &baseName, TextPropertyGroup *tpg, bool reading_)
 

Protected Attributes

int levelDepth
 
Level level
 
StoredContext storedContext
 
TextPropertyGrouptextPropertyGroup
 

Friends

class Property
 

Detailed Description

Definition at line 37 of file textfile_evaluation.h.

Member Typedef Documentation

typedef list<ASCString> PropertyContainer::Level
protected

Definition at line 42 of file textfile_evaluation.h.

Definition at line 77 of file textfile_evaluation.h.

typedef map< ASCString, pair<int, Level> > PropertyContainer::StoredContext
protected

Definition at line 45 of file textfile_evaluation.h.

Constructor & Destructor Documentation

virtual PropertyContainer::~PropertyContainer ( )
inlinevirtual

Definition at line 119 of file textfile_evaluation.h.

PropertyContainer::PropertyContainer ( const ASCString baseName,
TextPropertyGroup tpg,
bool  reading_ 
)
inlineprotected

Definition at line 122 of file textfile_evaluation.h.

Member Function Documentation

void PropertyContainer::addBool ( const ASCString name,
bool &  property 
)
void PropertyContainer::addBool ( const ASCString name,
bool &  property,
bool  defaultValue 
)

Definition at line 401 of file textfile_evaluation.cpp.

void PropertyContainer::addBreakpoint ( )
void PropertyContainer::addDFloat ( const ASCString name,
double &  property 
)
void PropertyContainer::addDFloat ( const ASCString name,
double &  property,
double  defaultValue 
)

Definition at line 387 of file textfile_evaluation.cpp.

void PropertyContainer::addDFloatArray ( const ASCString name,
vector< double > &  property 
)
void PropertyContainer::addDFloatArray ( const ASCString name,
vector< int > &  property 
)

Definition at line 439 of file textfile_evaluation.cpp.

void PropertyContainer::addImage ( const ASCString name,
Surface property,
ASCString fileName,
bool  applyFieldMask 
)
void PropertyContainer::addImageArray ( const ASCString name,
vector< Surface > &  property,
ASCString fileName 
)

Definition at line 525 of file textfile_evaluation.cpp.

Referenced by ObjectType::runTextIO().

void PropertyContainer::addInteger ( const ASCString name,
int &  property 
)
void PropertyContainer::addInteger ( const ASCString name,
int &  property,
int  defaultValue 
)

Definition at line 375 of file textfile_evaluation.cpp.

void PropertyContainer::addIntegerArray ( const ASCString name,
vector< int > &  property,
bool  required = true 
)
void PropertyContainer::addIntRangeArray ( const ASCString name,
vector< IntRange > &  property,
bool  required = true 
)
void PropertyContainer::addNamedInteger ( const ASCString name,
int &  property,
int  tagNum,
const char **  tags 
)
void PropertyContainer::addNamedInteger ( const ASCString name,
int &  property,
int  tagNum,
const char **  tags,
int  defaultValue 
)

Definition at line 484 of file textfile_evaluation.cpp.

void PropertyContainer::addString ( const ASCString name,
ASCString property 
)
void PropertyContainer::addString ( const ASCString name,
ASCString property,
const ASCString defaultValue 
)

Definition at line 413 of file textfile_evaluation.cpp.

void PropertyContainer::addStringArray ( const ASCString name,
vector< ASCString > &  property 
)
void PropertyContainer::addTagArray ( const ASCString name,
BitSet property,
int  tagNum,
const char **  tags,
bool  inverted = false 
)
void PropertyContainer::addTagInteger ( const ASCString name,
int &  property,
int  tagNum,
const char **  tags,
bool  inverted = false 
)
void PropertyContainer::addTagInteger ( const ASCString name,
int &  property,
int  tagNum,
const char **  tags,
int  defaultValue,
bool  inverted = false 
)

Definition at line 472 of file textfile_evaluation.cpp.

void PropertyContainer::closeBracket ( )
virtual
void PropertyContainer::error ( const ASCString errmsg)
bool PropertyContainer::find ( const ASCString name)
virtual ASCString PropertyContainer::getArchive ( )
pure virtual
virtual ASCString PropertyContainer::getFileName ( )
pure virtual
virtual ASCString PropertyContainer::getLocation ( )
pure virtual
ASCString PropertyContainer::getNameStack ( )

Definition at line 310 of file textfile_evaluation.cpp.

References level.

Referenced by ASCGUI_Window::parsePanelASCTXT().

bool PropertyContainer::isReading ( )
inline
void PropertyContainer::openBracket ( const ASCString name)
virtual
bool PropertyContainer::restoreContext ( const ASCString label)

Definition at line 511 of file textfile_evaluation.cpp.

References level, levelDepth, and storedContext.

void PropertyContainer::storeContext ( const ASCString label)

Definition at line 506 of file textfile_evaluation.cpp.

References level, levelDepth, and storedContext.

void PropertyContainer::warning ( const ASCString errmsg)

Friends And Related Function Documentation

friend class Property
friend

Definition at line 73 of file textfile_evaluation.h.

Member Data Documentation

Level PropertyContainer::level
protected
int PropertyContainer::levelDepth
protected
Properties PropertyContainer::properties

Definition at line 78 of file textfile_evaluation.h.

StoredContext PropertyContainer::storedContext
protected

Definition at line 46 of file textfile_evaluation.h.

Referenced by restoreContext(), and storeContext().

TextPropertyGroup* PropertyContainer::textPropertyGroup
protected

The documentation for this class was generated from the following files: