Stg::Worldfile Class Reference
#include <worldfile.hh>
Classes | |
| class | CEntity |
| class | CMacro |
| class | CToken |
Public Member Functions | |
| int | GetEntityCount () |
| int | GetEntityParent (int entity) |
| const char * | GetEntityType (int entity) |
| CProperty * | GetProperty (int entity, const char *name) |
| const char * | GetPropertyValue (CProperty *property, int index) |
| bool | Load (const std::string &filename) |
| int | LookupEntity (const char *type) |
| bool | PropertyExists (int section, const char *token) |
| double | ReadAngle (int entity, const char *name, double value) |
| uint32_t | ReadColor (int entity, const char *name, uint32_t value) |
| const char * | ReadFilename (int entity, const char *name, const char *value) |
| double | ReadFloat (int entity, const char *name, double value) |
| int | ReadInt (int entity, const char *name, int value) |
| double | ReadLength (int entity, const char *name, double value) |
| const std::string | ReadString (int entity, const char *name, const std::string &value) |
| int | ReadTuple (const int entity, const char *name, const unsigned int first, const unsigned int num, const char *format,...) |
| bool | Save (const std::string &filename) |
| bool | WarnUnused () |
| Worldfile () | |
| void | WriteFloat (int entity, const char *name, double value) |
| void | WriteInt (int entity, const char *name, int value) |
| void | WriteLength (int entity, const char *name, double value) |
| void | WriteString (int entity, const char *name, const std::string &value) |
| void | WriteTuple (const int entity, const char *name, const unsigned int first, const unsigned int count, const char *format,...) |
| ~Worldfile () | |
Public Attributes | |
| std::string | filename |
| double | unit_angle |
| double | unit_length |
Protected Member Functions | |
| FILE * | FileOpen (const std::string &filename, const char *method) |
Constructor & Destructor Documentation
| Worldfile::Worldfile | ( | ) |
| Worldfile::~Worldfile | ( | ) |
Member Function Documentation
| FILE * Worldfile::FileOpen | ( | const std::string & | filename, |
| const char * | method | ||
| ) | [protected] |
| int Worldfile::GetEntityCount | ( | ) |
| int Worldfile::GetEntityParent | ( | int | entity | ) |
| const char * Worldfile::GetEntityType | ( | int | entity | ) |
| CProperty * Worldfile::GetProperty | ( | int | entity, |
| const char * | name | ||
| ) |
| const char * Worldfile::GetPropertyValue | ( | CProperty * | property, |
| int | index | ||
| ) |
| bool Worldfile::Load | ( | const std::string & | filename | ) |
| int Worldfile::LookupEntity | ( | const char * | type | ) |
| bool Worldfile::PropertyExists | ( | int | section, |
| const char * | token | ||
| ) |
| double Stg::Worldfile::ReadAngle | ( | int | entity, |
| const char * | name, | ||
| double | value | ||
| ) | [inline] |
| uint32_t Stg::Worldfile::ReadColor | ( | int | entity, |
| const char * | name, | ||
| uint32_t | value | ||
| ) |
| const char * Worldfile::ReadFilename | ( | int | entity, |
| const char * | name, | ||
| const char * | value | ||
| ) |
| double Worldfile::ReadFloat | ( | int | entity, |
| const char * | name, | ||
| double | value | ||
| ) |
| int Worldfile::ReadInt | ( | int | entity, |
| const char * | name, | ||
| int | value | ||
| ) |
| double Stg::Worldfile::ReadLength | ( | int | entity, |
| const char * | name, | ||
| double | value | ||
| ) | [inline] |
| const std::string Worldfile::ReadString | ( | int | entity, |
| const char * | name, | ||
| const std::string & | value | ||
| ) |
| int Worldfile::ReadTuple | ( | const int | entity, |
| const char * | name, | ||
| const unsigned int | first, | ||
| const unsigned int | num, | ||
| const char * | format, | ||
| ... | |||
| ) |
| bool Worldfile::Save | ( | const std::string & | filename | ) |
| bool Worldfile::WarnUnused | ( | ) |
| void Worldfile::WriteFloat | ( | int | entity, |
| const char * | name, | ||
| double | value | ||
| ) |
| void Worldfile::WriteInt | ( | int | entity, |
| const char * | name, | ||
| int | value | ||
| ) |
| void Stg::Worldfile::WriteLength | ( | int | entity, |
| const char * | name, | ||
| double | value | ||
| ) |
| void Worldfile::WriteString | ( | int | entity, |
| const char * | name, | ||
| const std::string & | value | ||
| ) |
| void Worldfile::WriteTuple | ( | const int | entity, |
| const char * | name, | ||
| const unsigned int | first, | ||
| const unsigned int | count, | ||
| const char * | format, | ||
| ... | |||
| ) |
Member Data Documentation
| std::string Stg::Worldfile::filename |
| double Stg::Worldfile::unit_angle |
| double Stg::Worldfile::unit_length |
The documentation for this class was generated from the following files:
Generated on Thu Dec 29 2011 16:43:40 for Stage by
1.7.5.1
