Public Methods
- GGZCoreConf ()
- ~GGZCoreConf ()
- int init (const char* global, const char* local)
- int write (const char* section, const char* key, const char* value)
- int write (const char* section, const char* key, int value)
- int write (const char* section, const char* key, int argc, char** argv)
- char* read (const char* section, const char* key, const char* def)
- int read (const char* section, const char* key, int def)
- int read (const char* section, const char* key, int* argcp, char*** argvp)
- int removeKey (const char* section, const char* key)
- int removeSection (const char* section)
- int commit ()
A GGZCoreConf object is intended to deal with configuration files.
It is able to use sections and string lists.
GGZCoreConf ()
| GGZCoreConf |
Constructor.
~GGZCoreConf ()
| ~GGZCoreConf |
Destructor
int init (const char* global, const char* local)
| init |
Initialize the configuration object with the given global and local configuration path.
int write (const char* section, const char* key, const char* value)
| write |
Write a string.
int write (const char* section, const char* key, int value)
| write |
Write an integer value.
int write (const char* section, const char* key, int argc, char** argv)
| write |
Write a NULL-terminated list of strings.
char* read (const char* section, const char* key, const char* def)
| read |
Read a string from the configuration. Use def as the default value if key not found. NULL may also be specified as the default.
int read (const char* section, const char* key, int def)
| read |
Read an integer value.
int read (const char* section, const char* key, int* argcp, char*** argvp)
| read |
Read a dynamically allocated list of strings.
int removeKey (const char* section, const char* key)
| removeKey |
Remove an entry in the given section.
int removeSection (const char* section)
| removeSection |
Remove a whole section.
Commit all write changes.
Generated by: josef on athlon500 on Tue Mar 19 23:18:22 2002, using kdoc 2.0a53. |