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 char *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) |
double | ReadTupleAngle (int entity, const char *name, int index, double value) |
double | ReadTupleFloat (int entity, const char *name, int index, double value) |
double | ReadTupleLength (int entity, const char *name, int index, double value) |
const char * | ReadTupleString (int entity, const char *name, int index, const char *value) |
bool | Save (const char *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 | WriteTupleAngle (int entity, const char *name, int index, double value) |
void | WriteTupleFloat (int entity, const char *name, int index, double value) |
void | WriteTupleLength (int entity, const char *name, int index, double value) |
void | WriteTupleString (int entity, const char *name, int index, const char *value) |
~Worldfile () | |
Public Attributes | |
std::string | filename |
double | unit_angle |
double | unit_length |
Protected Member Functions | |
FILE * | FileOpen (const char *filename, const char *method) |
Constructor & Destructor Documentation
Worldfile::Worldfile | ( | ) |
Worldfile::~Worldfile | ( | ) |
Member Function Documentation
FILE * Worldfile::FileOpen | ( | const char * | 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 char * | filename | ) |
int Worldfile::LookupEntity | ( | const char * | type | ) |
bool Worldfile::PropertyExists | ( | int | section, | |
const char * | token | |||
) |
double Worldfile::ReadAngle | ( | int | entity, | |
const char * | name, | |||
double | value | |||
) |
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 Worldfile::ReadLength | ( | int | entity, | |
const char * | name, | |||
double | value | |||
) |
const std::string Worldfile::ReadString | ( | int | entity, | |
const char * | name, | |||
const std::string & | value | |||
) |
double Worldfile::ReadTupleAngle | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
double | value | |||
) |
double Worldfile::ReadTupleFloat | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
double | value | |||
) |
double Worldfile::ReadTupleLength | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
double | value | |||
) |
const char * Worldfile::ReadTupleString | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
const char * | value | |||
) |
bool Worldfile::Save | ( | const char * | 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 Worldfile::WriteLength | ( | int | entity, | |
const char * | name, | |||
double | value | |||
) |
void Worldfile::WriteString | ( | int | entity, | |
const char * | name, | |||
const std::string & | value | |||
) |
void Worldfile::WriteTupleAngle | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
double | value | |||
) |
void Worldfile::WriteTupleFloat | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
double | value | |||
) |
void Worldfile::WriteTupleLength | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
double | value | |||
) |
void Worldfile::WriteTupleString | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
const char * | value | |||
) |
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 Tue Oct 20 15:42:06 2009 for Stage by 1.6.1