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;
114 void set(
const char *
id,
const char *value);
121 void clear(
const char *
id);
127 inline const char *
get(void)
const
165 keydata *create(
const char *section);
168 void load(HKEY root,
keydata *section = NULL,
const char *path = NULL);
169 bool save(HKEY root,
keydata *section = NULL,
const char *path = NULL);
184 keyfile(
const char *path,
size_t pagesize = 0);
194 void load(
const char *path);
201 bool save(
const char *path);
207 void load(
const keyfile *source);
213 void load(
const keydata *source);
225 keydata *
get(
const char *section)
const;
227 inline keydata *operator()(
const char *section)
const
228 {
return get(section);}
230 inline keydata *operator[](
const char *section)
const
231 {
return get(section);}
259 inline int err(
void)
const
void release(SharedAccess &object)
Convenience function to unlock shared object through it's protocol.
const char * operator()(const char *id) const
Lookup a key value by it's id.
Various miscellaneous platform specific headers and defines.
Traditional keypair config file parsing class.
A linked object base class for ordered objects.
LinkedObject * end(void) const
Return last object in list for iterators.
ObjectProtocol * copy(ObjectProtocol *object)
Convenience function to access object copy.
Access standard files through character protocol.
Linked objects, lists, templates, and containers.
Private heaps, pools, and associations.
keydata * end(void) const
Get last keydata object, for iterative examinations.
An index container for maintaining an ordered list of objects.
linked_pointer< keydata > iterator
Convenience typedef for iterative pointer.
keyvalue * end(void) const
Get last value object, for iterative examinations.
keydata * begin(void) const
Get first keydata object, for iterative examinations.
A key value set is used for iterative access.
Common namespace for all ucommon objects.
keyvalue * begin(void) const
Get first value object, for iterative examinations.
A smart pointer template for iterating linked lists.
A memory protocol pager for private heap manager.
linked_pointer< keyvalue > iterator
Convenience typedef for iterative pointer.
LinkedObject * begin(void) const
Return first object in list for iterators.
Data keys parsed from a keyfile.