HoverRace  2.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HoverRace::MazeCompiler::TrackSpecParser Class Reference

#include <TrackSpecParser.h>

+ Inheritance diagram for HoverRace::MazeCompiler::TrackSpecParser:

Public Member Functions

 TrackSpecParser (std::istream &in)
 
 ~TrackSpecParser ()
 
int GetErrorLine () const
 
const char * GetNextAttrib (const char *pAttrib=NULL)
 
const char * GetNextClass (const char *pClassType=NULL)
 
bool GetNextLine ()
 
double GetNextNumParam (double DefaultValue=0.0)
 
const char * GetNextStrParam (const char *pDefaultValue=NULL)
 
const char * GetParams ()
 
void Reset ()
 

Protected Member Functions

const char * InternalGetNextClass ()
 
bool ReadNewLine ()
 Read the next meaningful line from the input stream into the buffer. More...
 

Protected Attributes

std::istream & in
 
char mLineBuffer [150]
 
int mLineNumber
 
char * mParsePtr
 
char mReturnBuffer [30]
 

Constructor & Destructor Documentation

HoverRace::MazeCompiler::TrackSpecParser::TrackSpecParser ( std::istream &  in)
HoverRace::MazeCompiler::TrackSpecParser::~TrackSpecParser ( )

Member Function Documentation

int HoverRace::MazeCompiler::TrackSpecParser::GetErrorLine ( ) const
const char * HoverRace::MazeCompiler::TrackSpecParser::GetNextAttrib ( const char *  pAttrib = NULL)
const char * HoverRace::MazeCompiler::TrackSpecParser::GetNextClass ( const char *  pClassType = NULL)
bool HoverRace::MazeCompiler::TrackSpecParser::GetNextLine ( )
double HoverRace::MazeCompiler::TrackSpecParser::GetNextNumParam ( double  DefaultValue = 0.0)
const char * HoverRace::MazeCompiler::TrackSpecParser::GetNextStrParam ( const char *  pDefaultValue = NULL)
const char * HoverRace::MazeCompiler::TrackSpecParser::GetParams ( )
const char * HoverRace::MazeCompiler::TrackSpecParser::InternalGetNextClass ( )
protected
bool HoverRace::MazeCompiler::TrackSpecParser::ReadNewLine ( )
protected

Read the next meaningful line from the input stream into the buffer.

Returns
true if successful, false if the end of the stream has been reached.
void HoverRace::MazeCompiler::TrackSpecParser::Reset ( )

Member Data Documentation

std::istream& HoverRace::MazeCompiler::TrackSpecParser::in
protected
char HoverRace::MazeCompiler::TrackSpecParser::mLineBuffer[150]
protected
int HoverRace::MazeCompiler::TrackSpecParser::mLineNumber
protected
char* HoverRace::MazeCompiler::TrackSpecParser::mParsePtr
protected
char HoverRace::MazeCompiler::TrackSpecParser::mReturnBuffer[30]
protected

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