CCommandParser Class Reference
[Parsing classes]

This class parses the command and give tokens to the CCommandExecutor class. More...

#include <CCommandParser.h>

List of all members.

Public Member Functions

CCommand Parse (std::string StrCommand) const
 This function parses a command and fills a CCommand structure to be executed.

Static Public Member Functions

static CCommandParsergetInstance ()
 This function returns a pointer to the unique instance of the CCommandParser and creates it if it doesn't exist yet.
static void freeInstance ()
 This function frees the unique instance of the CCommandParsor.

Private Member Functions

 CCommandParser ()
 The CCommandParser empty private constructor.

Static Private Member Functions

static bool StringToFloat (const std::string &StringNumber, float *pFloat)
 This function converts a string into a floating point value.
static bool StringToInt (const std::string &StringNumber, int *pInt)
 This function converts a string into a integer value.

Static Private Attributes

static CCommandParsers_pInstance = NULL


Detailed Description

This class parses the command and give tokens to the CCommandExecutor class.

It takes care of error checking and implements the singleton pattern.

Definition at line 46 of file CCommandParser.h.


Constructor & Destructor Documentation

CCommandParser::CCommandParser (  )  [inline, private]

The CCommandParser empty private constructor.

Definition at line 87 of file CCommandParser.h.


Member Function Documentation

static CCommandParser* CCommandParser::getInstance (  )  [inline, static]

This function returns a pointer to the unique instance of the CCommandParser and creates it if it doesn't exist yet.

Definition at line 53 of file CCommandParser.h.

References s_pInstance.

Referenced by CSingletonHandler::CSingletonHandler(), and main().

static void CCommandParser::freeInstance (  )  [inline, static]

This function frees the unique instance of the CCommandParsor.

Definition at line 66 of file CCommandParser.h.

References s_pInstance.

Referenced by CSingletonHandler::~CSingletonHandler().


The documentation for this class was generated from the following files:
Generated on Fri Dec 5 03:20:33 2008 for Mathematical Ray-tracer by  doxygen 1.5.4