IVT
CConfiguration Class Reference

#include <Configuration.h>

Public Member Functions

bool Read (const char *szFileName)
 
bool Read ()
 
void SetFileName (const char *szFileName)
 
 CConfiguration ()
 Construct a new Configuration object. More...
 
 CConfiguration (const char *szFileName)
 Construct a new Configuration object. More...
 
virtual ~CConfiguration ()
 Destructor. More...
 
bool GetString (char *szName, char *&szReturnString)
 Get string from configutation file. More...
 
bool GetInt (char *szName, int &nReturnInt)
 Get integer from configutation file. More...
 
bool GetDouble (char *szName, double &dReturnDouble)
 Get double from configutation file. More...
 
bool GetFloat (char *szName, float &fReturnFloat)
 Get float from configutation file. More...
 
bool GetBool (char *szName, bool &bReturnBool)
 Get bool from configutation file. More...
 

Detailed Description

Definition at line 51 of file Configuration.h.

Constructor & Destructor Documentation

CConfiguration::CConfiguration ( )

Construct a new Configuration object.

Definition at line 60 of file Configuration.cpp.

CConfiguration::CConfiguration ( const char *  szFileName)

Construct a new Configuration object.

Definition at line 69 of file Configuration.cpp.

CConfiguration::~CConfiguration ( )
virtual

Destructor.

Definition at line 80 of file Configuration.cpp.

Member Function Documentation

bool CConfiguration::GetBool ( char *  szName,
bool &  bReturnBool 
)

Get bool from configutation file.

Definition at line 212 of file Configuration.cpp.

bool CConfiguration::GetDouble ( char *  szName,
double &  dReturnDouble 
)

Get double from configutation file.

Definition at line 201 of file Configuration.cpp.

bool CConfiguration::GetFloat ( char *  szName,
float &  fReturnFloat 
)

Get float from configutation file.

Definition at line 190 of file Configuration.cpp.

bool CConfiguration::GetInt ( char *  szName,
int &  nReturnInt 
)

Get integer from configutation file.

Definition at line 178 of file Configuration.cpp.

bool CConfiguration::GetString ( char *  szName,
char *&  szReturnString 
)

Get string from configutation file.

Definition at line 165 of file Configuration.cpp.

bool CConfiguration::Read ( const char *  szFileName)

read a configuration file

Parameters
szFileNamefull filename of .cfg file
Returns
bValid returns true if error occured, false otherwise

Definition at line 101 of file Configuration.cpp.

bool CConfiguration::Read ( )

Definition at line 108 of file Configuration.cpp.

void CConfiguration::SetFileName ( const char *  szFileName)

Definition at line 155 of file Configuration.cpp.


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