Stg::Worldfile Class Reference

#include <worldfile.hh>

List of all members.


Classes

struct  CEntity
struct  CMacro
struct  CToken

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, 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 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 (  ) 

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 
)

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 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 
)

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 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 
)


Member Data Documentation


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

Generated on Wed Jul 22 11:51:06 2009 for Stage by  doxygen 1.5.9