#include <CCommandParser.h>
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 CCommandParser * | getInstance () |
| 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 CCommandParser * | s_pInstance = NULL |
It takes care of error checking and implements the singleton pattern.
Definition at line 46 of file CCommandParser.h.
| CCommandParser::CCommandParser | ( | ) | [inline, private] |
| 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().
1.5.4