42 #ifndef _CONFIGURATION_H_ 43 #define _CONFIGURATION_H_ 58 bool Read(
const char* szFileName);
72 bool GetString(
char* szName,
char*& szReturnString );
74 bool GetInt(
char* szName,
int& nReturnInt );
76 bool GetDouble(
char* szName,
double& dReturnDouble );
78 bool GetFloat(
char* szName,
float& fReturnFloat );
80 bool GetBool(
char* szName,
bool& bReturnBool );
90 bool ExtractName(
char* pchBuffer,
int& cnBufferPosition,
char*& pchResultName);
91 bool ExtractValue(
char* pchBuffer,
int& cnBufferPosition,
char*& pchResultValue);
93 void AddVariable(
char* pchCurrentName,
char* pchCurrentValue);
117 #endif // _CONFIGURATION_H_ void SetFileName(const char *szFileName)
TVariableMap ** m_ppVariables
bool ParseBuffer(char *pchBuffer)
void AddVariable(char *pchCurrentName, char *pchCurrentValue)
int GetLineNumber(char *pchBuffer, int cnBufferPosition)
bool GetVarByName(char *szName, char *&szReturnString)
Determine if variable with Name exists.
bool ExtractValue(char *pchBuffer, int &cnBufferPosition, char *&pchResultValue)
bool GetFloat(char *szName, float &fReturnFloat)
Get float from configutation file.
bool ExtractName(char *pchBuffer, int &cnBufferPosition, char *&pchResultName)
bool CheckControlCharacter(char *pchBuffer, int &cnBufferPosition)
struct CConfiguration::VarMap TVariableMap
bool GetBool(char *szName, bool &bReturnBool)
Get bool from configutation file.
bool SeekNextContent(char *pchBuffer, int &cnBufferPosition)
bool GetDouble(char *szName, double &dReturnDouble)
Get double from configutation file.
virtual ~CConfiguration()
Destructor.
bool GetString(char *szName, char *&szReturnString)
Get string from configutation file.
CConfiguration()
Construct a new Configuration object.
bool GetInt(char *szName, int &nReturnInt)
Get integer from configutation file.