Stg::Worldfile Class Reference
#include <worldfile.hh>
Public Member Functions | |
int | GetEntityCount () |
int | GetEntityParent (int entity) |
const char * | GetEntityType (int entity) |
CProperty * | GetProperty (int entity, const char *name) |
bool | Load (const char *filename) |
int | LookupEntity (const char *type) |
bool | PropertyExists (int section, 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 char * | ReadString (int entity, const char *name, const char *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 char *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 | |
char * | filename |
Protected Member Functions | |
FILE * | FileOpen (const char *filename, const char *method) |
Constructor & Destructor Documentation
Worldfile::Worldfile | ( | ) |
References filename.
Worldfile::~Worldfile | ( | ) |
References filename.
Member Function Documentation
FILE * Worldfile::FileOpen | ( | const char * | filename, | |
const char * | method | |||
) | [protected] |
int Worldfile::GetEntityCount | ( | ) |
Referenced by Stg::StgWorld::Load(), and LookupEntity().
int Worldfile::GetEntityParent | ( | int | entity | ) |
Referenced by Stg::StgWorld::Load().
const char * Worldfile::GetEntityType | ( | int | entity | ) |
Referenced by Stg::StgWorld::Load(), and LookupEntity().
CProperty * Worldfile::GetProperty | ( | int | entity, | |
const char * | name | |||
) |
bool Worldfile::Load | ( | const char * | filename | ) |
References FileOpen(), PRINT_ERR, PRINT_ERR2, ReadInt(), and ReadString().
Referenced by Stg::StgWorld::Load().
int Worldfile::LookupEntity | ( | const char * | type | ) |
bool Worldfile::PropertyExists | ( | int | section, | |
char * | token | |||
) |
References GetProperty().
Referenced by Stg::StgWorld::Load(), Stg::StgModelRanger::Load(), Stg::StgModelPosition::Load(), Stg::StgModel::Load(), and Stg::StgModelBlobfinder::Load().
double Worldfile::ReadAngle | ( | int | entity, | |
const char * | name, | |||
double | value | |||
) |
References GetProperty().
Referenced by Stg::StgModelLaser::Load(), Stg::StgModelFiducial::Load(), and Stg::StgModelBlobfinder::Load().
uint32_t Worldfile::ReadColor | ( | int | entity, | |
const char * | name, | |||
uint32_t | value | |||
) |
References GetProperty(), and Stg::stg_lookup_color().
const char * Worldfile::ReadFilename | ( | int | entity, | |
const char * | name, | |||
const char * | value | |||
) |
References GetProperty().
double Worldfile::ReadFloat | ( | int | entity, | |
const char * | name, | |||
double | value | |||
) |
References GetProperty().
Referenced by Stg::StgWorldGui::Load(), Stg::StgWorld::Load(), Stg::StgModel::Load(), Stg::StgModelBlobfinder::Load(), and Stg::StgModelBlinkenlight::Load().
int Worldfile::ReadInt | ( | int | entity, | |
const char * | name, | |||
int | value | |||
) |
References GetProperty().
Referenced by Stg::StgWorldGui::Load(), Load(), Stg::StgWorld::Load(), Stg::StgModelRanger::Load(), Stg::StgModel::Load(), Stg::StgModelLaser::Load(), and Stg::StgModelBlinkenlight::Load().
double Worldfile::ReadLength | ( | int | entity, | |
const char * | name, | |||
double | value | |||
) |
References GetProperty().
Referenced by Stg::StgModelLaser::Load(), and Stg::StgModelFiducial::Load().
const char * Worldfile::ReadString | ( | int | entity, | |
const char * | name, | |||
const char * | value | |||
) |
References GetProperty().
Referenced by Load(), Stg::StgWorld::Load(), Stg::StgModelPosition::Load(), and Stg::StgModel::Load().
double Worldfile::ReadTupleAngle | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
double | value | |||
) |
References GetProperty().
Referenced by Stg::StgModelRanger::Load(), Stg::StgModelPosition::Load(), and Stg::StgModel::Load().
double Worldfile::ReadTupleFloat | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
double | value | |||
) |
References GetProperty().
Referenced by Stg::StgWorldGui::Load(), Stg::StgModel::Load(), and Stg::StgModelBlobfinder::Load().
double Worldfile::ReadTupleLength | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
double | value | |||
) |
References GetProperty().
Referenced by Stg::StgModelRanger::Load(), Stg::StgModelPosition::Load(), and Stg::StgModel::Load().
const char * Worldfile::ReadTupleString | ( | int | entity, | |
const char * | name, | |||
int | index, | |||
const char * | value | |||
) |
bool Worldfile::Save | ( | const char * | filename | ) |
bool Worldfile::WarnUnused | ( | ) |
Referenced by Stg::StgWorld::Load().
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 | |||
) |
References WriteString().
void Worldfile::WriteString | ( | int | entity, | |
const char * | name, | |||
const char * | 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 | |||
) |
References GetProperty().
Referenced by WriteTupleAngle(), WriteTupleFloat(), and WriteTupleLength().
Member Data Documentation
char* Stg::Worldfile::filename |
Referenced by Stg::StgModel::Load(), Worldfile(), and ~Worldfile().
The documentation for this class was generated from the following files:
Generated on Thu Jan 7 17:42:17 2010 for Stage by 1.5.5