30 #ifndef _UCOMMON_KEYDATA_H_
31 #define _UCOMMON_KEYDATA_H_
33 #ifndef _UCOMMON_CONFIG_H_
37 #ifndef _UCOMMON_LINKED_H_
41 #ifndef _UCOMMON_MEMORY_H_
91 const char *
get(
const char *id)
const;
108 void set(
const char *
id,
const char *value);
115 void clear(
const char *
id);
121 inline const char *
get(void)
const
129 {
return (
keyvalue *)index.begin();};
159 keydata *create(
const char *section);
162 void load(HKEY root,
keydata *section = NULL,
const char *path = NULL);
163 bool save(HKEY root,
keydata *section = NULL,
const char *path = NULL);
178 keyfile(
const char *path,
size_t pagesize = 0);
188 void load(
const char *path);
195 bool save(
const char *path);
201 void load(
const keyfile *source);
207 void load(
const keydata *source);
219 keydata *
get(
const char *section)
const;
221 inline keydata *operator()(
const char *section)
const
222 {
return get(section);};
224 inline keydata *operator[](
const char *section)
const
225 {
return get(section);};
Linked objects, lists, templates, and containers.
A linked object base class for ordered objects.
A smart pointer template for iterating linked lists.
A memory protocol pager for private heap manager.
void release(SharedAccess &object)
Convenience function to unlock shared object through it's protocol.
Traditional keypair config file parsing class.
Various miscellaneous platform specific headers and defines.
Private heaps, pools, and associations.
An index container for maintaining an ordered list of objects.
Access standard files through character protocol.
A key value set is used for iterative access.
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.
keydata * begin(void) const
Get first keydata object, for iterative examinations.
ObjectProtocol * copy(ObjectProtocol *object)
Convenience function to access object copy.
keyvalue * end(void) const
Get last value object, for iterative examinations.
keyvalue * begin(void) const
Get first value object, for iterative examinations.
Data keys parsed from a keyfile.