#include <keydata.h>
Public Types | |
typedef linked_pointer< keydata > | iterator |
Convenience typedef for iterative pointer. | |
Public Member Functions | |
keyfile (size_t pagesize=0) | |
Create an empty key file ready for loading. | |
keyfile (const char *path, size_t pagesize=0) | |
Create a key file object from an existing config file. | |
void | load (const char *path) |
Load (overlay) another config file over the currently loaded one. | |
keydata * | get (const char *section) |
Get a keydata section name. | |
keydata * | operator() (const char *section) |
keydata * | operator[] (const char *section) |
keydata * | get (void) |
Get the non-sectioned defaults if there are any. | |
keydata * | begin (void) |
Get first keydata object, for iterative examinations. | |
keydata * | end (void) |
Get last keydata object, for iterative examinations. | |
Friends | |
class | keydata |
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 141 of file keydata.h.
ucc::keyfile::keyfile | ( | size_t | pagesize = 0 |
) |
Create an empty key file ready for loading.
pagesize | for memory paging. |
ucc::keyfile::keyfile | ( | const char * | path, | |
size_t | pagesize = 0 | |||
) |
Create a key file object from an existing config file.
path | to load from. | |
pagesize | for memory paging. |
keydata* ucc::keyfile::begin | ( | void | ) | [inline] |
keydata* ucc::keyfile::end | ( | void | ) | [inline] |
keydata* ucc::keyfile::get | ( | void | ) | [inline] |
keydata* ucc::keyfile::get | ( | const char * | section | ) |
void ucc::keyfile::load | ( | const char * | path | ) |
Load (overlay) another config file over the currently loaded one.
This is used to merge key data, such as getting default values from a global config, and then overlaying a local home config file.
path | to load keys from into current object. |