HoverRace  2.0
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
HoverRace::MazeCompiler::TrackCompiler Class Reference

Compiles the standard textual track format (usually generated by HoverCAD). More...

#include <TrackCompiler.h>

Public Member Functions

 TrackCompiler (const TrackCompilationLogPtr &log, const Util::OS::path_t &outputFilename)
 
 ~TrackCompiler ()
 
void Compile (const Util::OS::path_t &inputFilename) const
 Compile the track from a text file. More...
 
void Compile (std::istream &in) const
 Compile the track from an input stream. More...
 

Private Member Functions

void CreateHeader (std::istream &in, Parcel::ObjStream &pDestination) const
 

Static Private Member Functions

static void AddBackgroundImage (std::istream &in, Parcel::ObjStream &pDestination)
 
static std::string FormatStr (const char *pSrc)
 
static MR_UInt8LoadBitmap (FILE *pFile)
 
static MR_UInt8LoadPalette (FILE *pFile)
 
static MR_UInt8PCXRead (FILE *pFile, int &pXRes, int &pYRes)
 

Private Attributes

TrackCompilationLogPtr log
 
Util::OS::path_t outputFilename
 

Detailed Description

Compiles the standard textual track format (usually generated by HoverCAD).

Author
Michael Imamura

Constructor & Destructor Documentation

HoverRace::MazeCompiler::TrackCompiler::TrackCompiler ( const TrackCompilationLogPtr log,
const Util::OS::path_t outputFilename 
)
HoverRace::MazeCompiler::TrackCompiler::~TrackCompiler ( )
inline

Member Function Documentation

void HoverRace::MazeCompiler::TrackCompiler::AddBackgroundImage ( std::istream &  in,
Parcel::ObjStream pDestination 
)
staticprivate
void HoverRace::MazeCompiler::TrackCompiler::Compile ( const Util::OS::path_t inputFilename) const

Compile the track from a text file.

Parameters
inputFilenameThe full path to the input file.
Exceptions
TrackCompileExn
void HoverRace::MazeCompiler::TrackCompiler::Compile ( std::istream &  in) const

Compile the track from an input stream.

Parameters
inThe input stream.
Exceptions
TrackCompileExn
void HoverRace::MazeCompiler::TrackCompiler::CreateHeader ( std::istream &  in,
Parcel::ObjStream pDestination 
) const
private
std::string HoverRace::MazeCompiler::TrackCompiler::FormatStr ( const char *  pSrc)
staticprivate
MR_UInt8 * HoverRace::MazeCompiler::TrackCompiler::LoadBitmap ( FILE *  pFile)
staticprivate
MR_UInt8 * HoverRace::MazeCompiler::TrackCompiler::LoadPalette ( FILE *  pFile)
staticprivate
MR_UInt8 * HoverRace::MazeCompiler::TrackCompiler::PCXRead ( FILE *  pFile,
int &  pXRes,
int &  pYRes 
)
staticprivate

Member Data Documentation

TrackCompilationLogPtr HoverRace::MazeCompiler::TrackCompiler::log
private
Util::OS::path_t HoverRace::MazeCompiler::TrackCompiler::outputFilename
private

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