Stg::Worldfile Class Reference

#include <worldfile.hh>

List of all members.


Public Member Functions

int GetEntityCount ()
int GetEntityParent (int entity)
const char * GetEntityType (int entity)
CPropertyGetProperty (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]

References PRINT_DEBUG1.

Referenced by Load(), and Save().

int Worldfile::GetEntityCount (  ) 

int Worldfile::GetEntityParent ( int  entity  ) 

Referenced by Stg::StgWorld::Load().

const char * Worldfile::GetEntityType ( int  entity  ) 

bool Worldfile::Load ( const char *  filename  ) 

int Worldfile::LookupEntity ( const char *  type  ) 

bool Worldfile::PropertyExists ( int  section,
char *  token 
)

double Worldfile::ReadAngle ( int  entity,
const char *  name,
double  value 
)

uint32_t Worldfile::ReadColor ( int  entity,
const char *  name,
uint32_t  value 
)

const char * Worldfile::ReadFilename ( int  entity,
const char *  name,
const char *  value 
)

References GetProperty().

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 char * Worldfile::ReadString ( int  entity,
const char *  name,
const char *  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 
)

References GetProperty().

Referenced by Stg::StgModelBlobfinder::Load().

bool Worldfile::Save ( const char *  filename  ) 

References FileOpen(), and PRINT_ERR2.

Referenced by Stg::StgWorld::Save().

bool Worldfile::WarnUnused (  ) 

Referenced by Stg::StgWorld::Load().

void Worldfile::WriteFloat ( int  entity,
const char *  name,
double  value 
)

References WriteString().

Referenced by Stg::StgWorldGui::Save().

void Worldfile::WriteInt ( int  entity,
const char *  name,
int  value 
)

References WriteString().

Referenced by Stg::StgWorldGui::Save().

void Worldfile::WriteLength ( int  entity,
const char *  name,
double  value 
)

References WriteString().

void Worldfile::WriteString ( int  entity,
const char *  name,
const char *  value 
)

References GetProperty().

Referenced by WriteFloat(), WriteInt(), and WriteLength().

void Worldfile::WriteTupleAngle ( int  entity,
const char *  name,
int  index,
double  value 
)

References WriteTupleString().

Referenced by Stg::StgModel::Save().

void Worldfile::WriteTupleFloat ( int  entity,
const char *  name,
int  index,
double  value 
)

References WriteTupleString().

Referenced by Stg::StgWorldGui::Save().

void Worldfile::WriteTupleLength ( int  entity,
const char *  name,
int  index,
double  value 
)

References WriteTupleString().

Referenced by Stg::StgModel::Save().

void Worldfile::WriteTupleString ( int  entity,
const char *  name,
int  index,
const char *  value 
)


Member Data Documentation


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

Generated on Thu Jan 7 17:42:17 2010 for Stage by  doxygen 1.5.5