#include <textfile_evaluation.h>
Inheritance diagram for PropertyContainer:

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< ASCString > | Level |
| 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 |
| TextPropertyGroup * | textPropertyGroup |
Friends | |
| class | Property |
Classes | |
| class | Property |
Definition at line 37 of file textfile_evaluation.h.
typedef list<ASCString> PropertyContainer::Level [protected] |
Definition at line 42 of file textfile_evaluation.h.
typedef map< ASCString, pair<int, Level> > PropertyContainer::StoredContext [protected] |
Definition at line 45 of file textfile_evaluation.h.
| typedef PointerList<Property*> PropertyContainer::Properties |
Definition at line 77 of file textfile_evaluation.h.
| virtual PropertyContainer::~PropertyContainer | ( | ) | [inline, virtual] |
Definition at line 119 of file textfile_evaluation.h.
| PropertyContainer::PropertyContainer | ( | const ASCString & | baseName, | |
| TextPropertyGroup * | tpg, | |||
| bool | reading_ | |||
| ) | [inline, protected] |
Definition at line 122 of file textfile_evaluation.h.
| void PropertyContainer::openBracket | ( | const ASCString & | name | ) | [virtual] |
Reimplemented in PropertyWritingContainer.
Definition at line 321 of file textfile_evaluation.cpp.
References level, and levelDepth.
Referenced by PropertyWritingContainer::openBracket(), ASCGUI_Window::parsePanelASCTXT(), PropertyReadingContainer::PropertyReadingContainer(), SingleWeapon::runTextIO(), VehicleType::runTextIO(), TerrainType::runTextIO(), Package::runTextIO(), ObjectType::runTextIO(), ObjectType::FieldModification::runTextIO(), CGameOptions::runTextIO(), ContainerBaseType::runTextIO(), BuildingType::runTextIO(), UnitInfoDialog::userHandler(), and CargoDialog::userHandler().
| void PropertyContainer::closeBracket | ( | ) | [virtual] |
Reimplemented in PropertyWritingContainer.
Definition at line 327 of file textfile_evaluation.cpp.
References level, and levelDepth.
Referenced by PropertyWritingContainer::closeBracket(), ASCGUI_Window::parsePanelASCTXT(), SingleWeapon::runTextIO(), VehicleType::runTextIO(), TerrainType::runTextIO(), Package::runTextIO(), ObjectType::runTextIO(), ObjectType::FieldModification::runTextIO(), CGameOptions::runTextIO(), ContainerBaseType::runTextIO(), BuildingType::runTextIO(), UnitInfoDialog::userHandler(), and CargoDialog::userHandler().
| ASCString PropertyContainer::getNameStack | ( | ) |
Definition at line 310 of file textfile_evaluation.cpp.
References level.
Referenced by ASCGUI_Window::parsePanelASCTXT().
Definition at line 407 of file textfile_evaluation.cpp.
Referenced by ASCGUI_Window::parsePanelASCTXT(), ClipBoardBase::readProperties(), ASCGUI_Window::WidgetParameters::runTextIO(), SingleWeapon::runTextIO(), VehicleType::runTextIO(), TerrainType::Weather::runTextIO(), TerrainType::runTextIO(), Technology::runTextIO(), TechAdapter::runTextIO(), Package::runTextIO(), ObjectType::runTextIO(), Campaign::runTextIO(), MusicPlayList::runTextIO(), ItemFiltrationSystem::ItemFilter::runTextIO(), CGameOptions::runTextIO(), ContainerBaseType::runTextIO(), BuildingType::runTextIO(), ASCGUI_Window::setup(), and ClipBoardBase::writeProperties().
| void PropertyContainer::addString | ( | const ASCString & | name, | |
| ASCString & | property, | |||
| const ASCString & | defaultValue | |||
| ) |
Definition at line 413 of file textfile_evaluation.cpp.
Definition at line 420 of file textfile_evaluation.cpp.
Referenced by ASCGUI_Window::parsePanelASCTXT(), TechAdapterDependency::runTextIO(), MusicPlayList::runTextIO(), CGameOptions::runTextIO(), and transformMap().
| void PropertyContainer::addInteger | ( | const ASCString & | name, | |
| int & | property | |||
| ) |
Definition at line 369 of file textfile_evaluation.cpp.
Referenced by TextPropertyGroup::buildInheritance(), TextPropertyGroup::evalID(), ASCGUI_Window::parsePanelASCTXT(), ASCGUI_Window::parseRect(), ASCGUI_Window::WidgetParameters::runTextIO(), VehicleType::HeightChangeMethod::runTextIO(), SingleWeapon::runTextIO(), VehicleType::runTextIO(), Resources::runTextIO(), TerrainType::Weather::runTextIO(), TerrainType::runTextIO(), Technology::runTextIO(), Package::runTextIO(), ObjectType::runTextIO(), CGameOptions::runTextIO(), ContainerBaseType::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), BuildingType::runTextIO(), ASCGUI_Window::setup(), and CargoDialog::userHandler().
| void PropertyContainer::addInteger | ( | const ASCString & | name, | |
| int & | property, | |||
| int | defaultValue | |||
| ) |
Definition at line 375 of file textfile_evaluation.cpp.
| void PropertyContainer::addDFloat | ( | const ASCString & | name, | |
| double & | property | |||
| ) |
Definition at line 381 of file textfile_evaluation.cpp.
Referenced by ASCGUI_Window::parsePanelASCTXT(), VehicleType::runTextIO(), and ObjectType::runTextIO().
| void PropertyContainer::addDFloat | ( | const ASCString & | name, | |
| double & | property, | |||
| double | defaultValue | |||
| ) |
Definition at line 387 of file textfile_evaluation.cpp.
| void PropertyContainer::addIntegerArray | ( | const ASCString & | name, | |
| vector< int > & | property, | |||
| bool | required = true | |||
| ) |
Definition at line 427 of file textfile_evaluation.cpp.
Referenced by TextPropertyGroup::buildInheritance(), VehicleType::runTextIO(), TerrainType::runTextIO(), Technology::runTextIO(), ObjectType::runTextIO(), Bi3MapTranslationTable::runTextIO(), ContainerBaseType::runTextIO(), BuildingType::runTextIO(), and transformMap().
Definition at line 433 of file textfile_evaluation.cpp.
Referenced by ResourceMatrix::runTextIO(), TerrainType::Weather::runTextIO(), and ObjectType::FieldModification::runTextIO().
Definition at line 439 of file textfile_evaluation.cpp.
| void PropertyContainer::addIntRangeArray | ( | const ASCString & | name, | |
| vector< IntRange > & | property, | |||
| bool | required = true | |||
| ) |
Definition at line 453 of file textfile_evaluation.cpp.
Referenced by VehicleType::runTextIO(), Technology::runTextIO(), TechDependency::runTextIO(), ObjectType::runTextIO(), ItemFiltrationSystem::ItemFilter::runTextIO(), and ContainerBaseType::runTextIO().
| void PropertyContainer::addTagArray | ( | const ASCString & | name, | |
| BitSet & | property, | |||
| int | tagNum, | |||
| const char ** | tags, | |||
| bool | inverted = false | |||
| ) |
Definition at line 460 of file textfile_evaluation.cpp.
Referenced by VehicleType::runTextIO(), TerrainType::Weather::runTextIO(), TerrainType::runTextIO(), TerrainAccess::runTextIO(), ObjectType::runTextIO(), ObjectType::FieldModification::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), and BuildingType::runTextIO().
| void PropertyContainer::addTagInteger | ( | const ASCString & | name, | |
| int & | property, | |||
| int | tagNum, | |||
| const char ** | tags, | |||
| bool | inverted = false | |||
| ) |
Definition at line 466 of file textfile_evaluation.cpp.
Referenced by VehicleType::HeightChangeMethod::runTextIO(), SingleWeapon::runTextIO(), VehicleType::runTextIO(), ObjectType::runTextIO(), ContainerBaseType::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), and BuildingType::runTextIO().
| 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::addNamedInteger | ( | const ASCString & | name, | |
| int & | property, | |||
| int | tagNum, | |||
| const char ** | tags | |||
| ) |
Definition at line 478 of file textfile_evaluation.cpp.
Referenced by ASCGUI_Window::parsePanelASCTXT(), ASCGUI_Window::WidgetParameters::runTextIO(), VehicleType::runTextIO(), TerrainType::Weather::runTextIO(), ObjectType::runTextIO(), and CGameOptions::runTextIO().
| 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::addBreakpoint | ( | ) |
Definition at line 490 of file textfile_evaluation.cpp.
References addBool(), and isReading().
Referenced by TerrainType::runTextIO(), ObjectType::runTextIO(), ContainerBaseType::runTextIO(), and BuildingType::runTextIO().
| void PropertyContainer::addImage | ( | const ASCString & | name, | |
| Surface & | property, | |||
| ASCString & | fileName, | |||
| bool | applyFieldMask | |||
| ) |
Definition at line 532 of file textfile_evaluation.cpp.
Referenced by VehicleType::runTextIO(), TerrainType::Weather::runTextIO(), and BuildingType::runTextIO().
| void PropertyContainer::addBool | ( | const ASCString & | name, | |
| bool & | property | |||
| ) |
Definition at line 395 of file textfile_evaluation.cpp.
Referenced by addBreakpoint(), TextPropertyGroup::buildInheritance(), ASCGUI_Window::parsePanelASCTXT(), ASCGUI_Window::WidgetParameters::runTextIO(), VehicleType::HeightChangeMethod::runTextIO(), VehicleType::runTextIO(), TerrainType::Weather::runTextIO(), Technology::runTextIO(), TechAdapterDependency::runTextIO(), TechDependency::runTextIO(), ObjectType::runTextIO(), ItemFiltrationSystem::ItemFilter::runTextIO(), CGameOptions::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), and BuildingType::runTextIO().
| void PropertyContainer::addBool | ( | const ASCString & | name, | |
| bool & | property, | |||
| bool | defaultValue | |||
| ) |
Definition at line 401 of file textfile_evaluation.cpp.
| void PropertyContainer::storeContext | ( | const ASCString & | label | ) |
Definition at line 506 of file textfile_evaluation.cpp.
References level, levelDepth, and storedContext.
| bool PropertyContainer::restoreContext | ( | const ASCString & | label | ) |
Definition at line 511 of file textfile_evaluation.cpp.
References level, levelDepth, and storedContext.
| bool PropertyContainer::isReading | ( | ) | [inline] |
Definition at line 113 of file textfile_evaluation.h.
Referenced by addBreakpoint(), PropertyTemplate< T >::evaluate(), SingleWeapon::runTextIO(), VehicleType::runTextIO(), ResourceMatrix::runTextIO(), TerrainType::Weather::runTextIO(), TerrainType::runTextIO(), Technology::runTextIO(), TechAdapterDependency::runTextIO(), TechDependency::runTextIO(), Package::runTextIO(), ObjectType::runTextIO(), CGameOptions::runTextIO(), ContainerBaseType::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), and BuildingType::runTextIO().
| void PropertyContainer::warning | ( | const ASCString & | errmsg | ) |
Definition at line 541 of file textfile_evaluation.cpp.
References fatalError(), TextPropertyGroup::fileName, textPropertyGroup, and warningMessage().
| void PropertyContainer::error | ( | const ASCString & | errmsg | ) |
Definition at line 550 of file textfile_evaluation.cpp.
References displayLogMessage(), and getLocation().
Referenced by PropertyContainer::Property::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(), VehicleType::runTextIO(), ResourceMatrix::runTextIO(), ObjectType::runTextIO(), BuildingType::runTextIO(), and PropertyWritingContainer::~PropertyWritingContainer().
| bool PropertyContainer::find | ( | const ASCString & | name | ) |
Definition at line 556 of file textfile_evaluation.cpp.
References TextPropertyGroup::find(), level, textPropertyGroup, and ASCString::toLower().
Referenced by ASCGUI_Window::parsePanelASCTXT(), ASCGUI_Window::WidgetParameters::runTextIO(), SingleWeapon::runTextIO(), VehicleType::runTextIO(), ResourceMatrix::runTextIO(), TerrainType::runTextIO(), Technology::runTextIO(), TechAdapterDependency::runTextIO(), TechDependency::runTextIO(), ObjectType::runTextIO(), Bi3MapTranslationTable::runTextIO(), ItemFiltrationSystem::ItemFilter::runTextIO(), CGameOptions::runTextIO(), ContainerBaseType::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), BuildingType::runTextIO(), ASCGUI_Window::setup(), and transformMap().
| virtual ASCString PropertyContainer::getFileName | ( | ) | [pure virtual] |
Implemented in PropertyReadingContainer, and PropertyWritingContainer.
Referenced by SingleWeapon::runTextIO(), VehicleType::runTextIO(), ContainerBaseType::TransportationIO::runTextIO(), and BuildingType::runTextIO().
| virtual ASCString PropertyContainer::getArchive | ( | ) | [pure virtual] |
Implemented in PropertyReadingContainer, and PropertyWritingContainer.
Referenced by Package::runTextIO().
| virtual ASCString PropertyContainer::getLocation | ( | ) | [pure virtual] |
Implemented in PropertyReadingContainer, and PropertyWritingContainer.
Referenced by error(), and Package::runTextIO().
friend class Property [friend] |
Definition at line 73 of file textfile_evaluation.h.
int PropertyContainer::levelDepth [protected] |
Definition at line 41 of file textfile_evaluation.h.
Referenced by PropertyWritingContainer::closeBracket(), closeBracket(), PropertyWritingContainer::openBracket(), openBracket(), restoreContext(), storeContext(), PropertyWritingContainer::writeProperty(), and PropertyWritingContainer::~PropertyWritingContainer().
Level PropertyContainer::level [protected] |
Definition at line 43 of file textfile_evaluation.h.
Referenced by PropertyWritingContainer::closeBracket(), closeBracket(), find(), getNameStack(), openBracket(), restoreContext(), and storeContext().
StoredContext PropertyContainer::storedContext [protected] |
Definition at line 46 of file textfile_evaluation.h.
Referenced by restoreContext(), and storeContext().
TextPropertyGroup* PropertyContainer::textPropertyGroup [protected] |
Definition at line 48 of file textfile_evaluation.h.
Referenced by find(), PropertyContainer::Property::findEntry(), PropertyReadingContainer::getArchive(), PropertyReadingContainer::getFileName(), PropertyReadingContainer::getLocation(), PropertyWritingContainer::PropertyWritingContainer(), warning(), and PropertyWritingContainer::~PropertyWritingContainer().
Definition at line 78 of file textfile_evaluation.h.
1.5.1