Public Types |
typedef linked_pointer< keydata > | iterator |
| Convenience typedef for iterative pointer.
|
Public Member Functions |
keydata * | begin (void) |
| Get first keydata object, for iterative examinations.
|
keydata * | end (void) |
| Get last keydata object, for iterative examinations.
|
int | err (void) |
keydata * | get (char *section) |
| Get a keydata section name.
|
keydata * | get (void) |
| Get the non-sectioned defaults if there are any.
|
| keyfile (size_t pagesize=0) |
| Create an empty key file ready for loading.
|
| keyfile (char *path, size_t pagesize=0) |
| Create a key file object from an existing config file.
|
| keyfile (keyfile ©, size_t pagesize=0) |
void | load (char *path) |
| Load (overlay) another config file over the currently loaded one.
|
void | load (keyfile *source) |
| Load from an existing keyfile object.
|
void | load (keydata *source) |
| Load a single set of keys.
|
keydata * | operator() (char *section) |
keydata * | operator[] (char *section) |
void | release (void) |
| Release and re-initialize keyfile.
|
bool | save (char *path) |
| Save (write) a set of config keys to dist.
|
Protected Member Functions |
keydata * | create (char *section) |
Friends |
class | keydata |
Traditional keypair config file parsing class.
This is used to get generic config data either from a /etc/xxx.conf, a windows style xxx.ini file, or a ~/.xxxrc file, and parses [] sections from the entire file at once.
Definition at line 150 of file keydata.h.