|
| keydata * | begin (void) const |
| | Get first keydata object, for iterative examinations. More...
|
| |
| keydata * | end (void) const |
| | Get last keydata object, for iterative examinations. More...
|
| |
|
int | err (void) |
| |
| keydata * | get (const char *section) const |
| | Get a keydata section name. More...
|
| |
| keydata * | get (void) const |
| | Get the non-sectioned defaults if there are any. More...
|
| |
| | keyfile (size_t pagesize=0) |
| | Create an empty key file ready for loading. More...
|
| |
| | keyfile (const char *path, size_t pagesize=0) |
| | Create a key file object from an existing config file. More...
|
| |
|
| keyfile (const keyfile ©, size_t pagesize=0) |
| |
| void | load (const char *path) |
| | Load (overlay) another config file over the currently loaded one. More...
|
| |
| void | load (const keyfile *source) |
| | Load from an existing keyfile object. More...
|
| |
| void | load (const keydata *source) |
| | Load a single set of keys. More...
|
| |
|
keydata * | operator() (const char *section) const |
| |
|
keydata * | operator[] (const char *section) const |
| |
|
void | release (void) |
| | Release and re-initialize keyfile.
|
| |
| bool | save (const char *path) |
| | Save (write) a set of config keys to dist. More...
|
| |
| virtual void * | _alloc (size_t size) |
| | Allocate memory from the pager heap. More...
|
| |
| unsigned | max (void) const |
| | Get the maximum number of pages that are permitted. More...
|
| |
| | memalloc (size_t page=0) |
| | Construct a memory pager. More...
|
| |
| unsigned | pages (void) const |
| | Get the number of pages that have been allocated from the real heap. More...
|
| |
|
void | purge (void) |
| | Purge all allocated memory and heap pages immediately.
|
| |
| unsigned | size (void) const |
| | Get the size of a memory page. More...
|
| |
| unsigned | utilization (void) const |
| | Determine fragmentation level of acquired heap pages. More...
|
| |
| virtual | ~memalloc () |
| | Destroy a memory pager. More...
|
| |
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.