#include <uniconfroot.h>
Inherits UniConf.
Collaboration diagram for UniConfRoot:
*
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.
Definition at line 73 of file uniconfroot.h.
Public Member Functions | |
UniConfRoot () | |
Creates an empty UniConf tree with no mounted stores. | |
~UniConfRoot () | |
Destroys the UniConf tree along with all uncommitted data. | |
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. | |
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 | |
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 |
|
Creates an empty UniConf tree with no mounted stores.
Definition at line 85 of file uniconfroot.h. References mounts, UniConfGen::setcallback(), UniConf, and UniConfGenCallback. |
|
Destroys the UniConf tree along with all uncommitted data.
Definition at line 92 of file uniconfroot.h. References mounts, UniConfGen::setcallback(), and UniConfGenCallback. |
|
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. Definition at line 100 of file uniconfroot.h. References UniMountGen::mount(), mounts, UniConfGen::setcallback(), UniConf, UniConfGenCallback, and WvStringParm. |
|
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. Definition at line 113 of file uniconfroot.h. References UniMountGen::mountgen(), mounts, UniConfGen::setcallback(), UniConf, and UniConfGenCallback. |
|
Requests notification when any of the keys covered by the recursive depth specification change by invoking a callback.
Definition at line 13 of file uniconfroot.cc. References UniConfTree< Sub, Base >::findchild(), UniConfKey::Iter::next(), UniConfKey::Iter::rewind(), and UniWatchInfoTree::watches. Referenced by add_setbool(). |
|
Requests notification when any of the keys covered by the recursive depth specification change by setting a flag.
Definition at line 53 of file uniconfroot.cc. References add_callback(), and setbool_callback(). |
|
Cancels notification requested using add_callback().
Definition at line 31 of file uniconfroot.cc. References UniConfTree< Sub, Base >::find(), and UniWatchInfoTree::watches. Referenced by del_setbool(). |
|
Cancels notification requested using add_setbool().
Definition at line 62 of file uniconfroot.cc. References del_callback(). |
|
Internal callback for setbool style notifications.
Definition at line 172 of file uniconfroot.h. Referenced by add_setbool(). |
|
Definition at line 75 of file uniconfroot.h. Referenced by UniConfRoot(). |
|
Definition at line 76 of file uniconfroot.h. |
|
Definition at line 168 of file uniconfroot.h. Referenced by UniConfRoot(), and ~UniConfRoot(). |