#include <uniconfroot.h>
Any number of data containers may be mounted into the tree at any number of mount points to provide a backing store from which registry keys and values are fetched and into which they are stored. Multiple data containers may be mounted at the same location using standard unix semantics.
Public Member Functions | |
UniConfRoot () | |
Creates an empty UniConf tree with no mounted stores. | |
UniConfRoot (WvStringParm moniker, bool refresh=true) | |
Creates a new UniConf tree and mounts the given moniker at the root. | |
UniConfRoot (UniConfGen *gen, bool refresh=true) | |
Creates a new UniConf tree and mounts the given generator at the root. | |
~UniConfRoot () | |
Destroys the UniConf tree along with all uncommitted data. | |
void | add_callback (void *cookie, const UniConfKey &key, const UniConfCallback &callback, bool recurse=true) |
Requests notification when any of the keys covered by the recursive depth specification change by invoking a callback. | |
void | del_callback (void *cookie, const UniConfKey &key, bool recurse=true) |
Cancels notification requested using add_callback(). | |
void | add_setbool (const UniConfKey &key, bool *flag, bool recurse=true) |
Requests notification when any of the keys covered by the recursive depth specification change by setting a flag. | |
void | del_setbool (const UniConfKey &key, bool *flag, bool recurse=true) |
Cancels notification requested using add_setbool(). | |
Static Public Member Functions | |
static void | setbool_callback (bool *flag, const UniConf &, const UniConfKey &) |
Internal callback for setbool style notifications. | |
Protected Attributes | |
UniMountGen | mounts |
Friends | |
class | UniConf |
class | UniConf::Iter |
class | UniConf::RecursiveIter |
|
Creates a new UniConf tree and mounts the given moniker at the root. Since most people only want to mount one generator, this should save a line of code here and there. |
|
Creates a new UniConf tree and mounts the given generator at the root. Since most people only want to mount one generator, this should save a line of code here and there. |