abstract base class config
abstract base class config
virtual void changeCurrentPath(const char *szPath = "")
const char* getCurrentPath()
static char* normalizePath(const char *szStartPath, const char *szPath)
Relative - path (".." allowed) from start path
Enumeration of subgroups/entries
class Enumerator
size_t Count()
const char* operator[](size_t nIndex)
virtual Enumerator* enumSubgroups()
char **aszGroups;
config.setCurrentPath("mygroup");
BaseConfig::Enumerator *pEnum = config.enumSubgroups();
size_t nGroups = pEnum->Count();
for ( size_t n = 0; n < nGroups; n++ )
cout << "Name of subgorup #" << n << " is " << (*pEnum)[n] << endl;
delete pEnum;
virtual Enumerator* enumEntries()
Key access
virtual const char* readEntry(const char *szKey, const char *szDefault = NULL)
szDefault - The default value to return if not found.
long int readEntry(const char *szKey, long int Default)
Default - The default value to return if not found.
double readEntry(const char *szKey, double Default)
Default - The default value to return if not found.
virtual Bool writeEntry(const char *szKey, const char *szValue)
szValue - The new value.
Bool writeEntry(const char *szKey, long int Value)
Value - The new value.
Bool writeEntry(const char *szKey, double Value)
Value - The new value.
virtual Bool deleteEntry(const char *szKey)
Other functions
Filter functions.
static char* filterOut(const char *szValue)
static char* filterIn(const char *szValue)
void expandVariables(Bool bExpand = TRUE)
Bool doesExpandVariables(void)
Bool m_bOk
Bool m_bExpandVariables
Bool m_bRecordDefaults
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de