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.
|
| virtual void * | _alloc (size_t size) |
| | Allocate memory from the pager heap.
|
| unsigned | getAlloc (void) |
| | Get the size of a memory page.
|
| unsigned | getLimit (void) |
| | Get the maximum number of pages that are permitted.
|
| unsigned | getPages (void) |
| | Get the number of pages that have been allocated from the real heap.
|
| | memalloc (size_t page=0) |
| | Construct a memory pager.
|
|
void | purge (void) |
| | Purge all allocated memory and heap pages immediately.
|
| unsigned | utilization (void) |
| | Determine fragmentation level of acquired heap pages.
|
| virtual | ~memalloc () |
| | Destroy a memory pager.
|
| void * | alloc (size_t size) |
| | Convenience function.
|
| char * | dup (const char *string) |
| | Duplicate NULL terminated string into allocated memory.
|
| void * | dup (void *memory, size_t size) |
| | Duplicate existing memory block into allocated memory.
|
| void * | zalloc (size_t size) |
| | Allocate memory from the pager heap.
|
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.