Go to the documentation of this file.
31 #ifndef _UCOMMON_KEYDATA_H_
32 #define _UCOMMON_KEYDATA_H_
34 #ifndef _UCOMMON_CONFIG_H_
38 #ifndef _UCOMMON_LINKED_H_
42 #ifndef _UCOMMON_MEMORY_H_
97 const char *get(
const char *
id)
const;
115 void set(
const char *
id,
const char *value);
122 void clear(
const char *
id);
128 inline const char *
get(
void)
const {
169 keydata *create(
const char *section);
172 void load(HKEY root,
keydata *section = NULL,
const char *path = NULL);
173 bool save(HKEY root,
keydata *section = NULL,
const char *path = NULL);
188 keyfile(
const char *path,
size_t pagesize = 0);
198 void load(
const char *path);
205 bool save(
const char *path);
211 void load(
const keyfile *source);
217 void load(
const keydata *source);
229 keydata *get(
const char *section)
const;
231 inline keydata *operator()(
const char *section)
const {
235 inline keydata *operator[](
const char *section)
const {
268 inline int err(
void)
const {
Data keys parsed from a keyfile.
Private heaps, pools, and associations.
const char * get(void) const
Get the name of this section.
Various miscellaneous platform specific headers and defines.
Traditional keypair config file parsing class.
Common namespace for all ucommon objects.
Linked objects, lists, templates, and containers.
T copy(const T &src)
Convenience function to copy objects.
A smart pointer template for iterating linked lists.
keyvalue * begin(void) const
Get first value object, for iterative examinations.
linked_pointer< keyvalue > pointer
Convenience typedef for iterative pointer.
A linked object base class for ordered objects.
keydata * begin(void) const
Get first keydata object, for iterative examinations.
keydata * end(void) const
Get last keydata object, for iterative examinations.
const char * operator()(const char *id) const
Lookup a key value by it's id.
A memory protocol pager for private heap manager.
linked_pointer< keydata > pointer
Convenience typedef for iterative pointer.
A key value set is used for iterative access.
keydata * get(void) const
Get the non-sectioned defaults if there are any.
keyvalue * end(void) const
Get last value object, for iterative examinations.
LinkedObject * end(void) const
Return last object in list for iterators.
An index container for maintaining an ordered list of objects.
LinkedObject * begin(void) const
Return first object in list for iterators.