class GGZCoreConfio

More...

Definition#include <GGZCoreConfio.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods


Detailed Description

This is similar to GGZCoreConf, but provides additionally a mode which applies to the way one uses the methods.

enum GGZCoreConfioOptions { readonly = GGZ_CONF_RDONLY, readwrite = GGZ_CONF_RDWR, create = GGZ_CONF_CREATE }

GGZCoreConfioOptions

Options which are passed to the constructor as an or'd list.

 GGZCoreConfio (const char* path, const int options)

GGZCoreConfio

Constructor. Its arguments specify the configuration file path and the options to operate on this file.

 ~GGZCoreConfio ()

~GGZCoreConfio

Destructor

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.

int  commit ()

commit

Commit all write changes.

void  free (void *ptr)

free

[static]

Free allocated memory

void  cleanup ()

cleanup

[static]

Close all open configuration files


Generated by: josef on athlon500 on Tue Mar 19 23:18:22 2002, using kdoc 2.0a53.