Go to the documentation of this file.
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;
98 inline const char *operator()(
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);};