7 #ifndef __UNICONFROOT_H 8 #define __UNICONFROOT_H 11 #include "uniconftree.h" 12 #include "unimountgen.h" 26 UniWatchInfo(
void *_cookie,
bool _recurse, UniConfCallback _cb)
27 : cookie(_cookie), recurse(_recurse), cb(_cb) { }
39 {
return other.cookie == cookie; }
51 UniWatchInfoList watches;
110 const UniConfCallback &callback,
bool recurse =
true);
116 bool recurse =
true);
163 #endif //__UNICONFROOT_H ~UniConfRoot()
Destroys the UniConf tree along with all uncommitted data.
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
This iterator performs depth-first traversal of a subtree.
This iterator walks through all immediate children of a UniConf node.
bool isessential()
Returns true if the node should not be pruned.
const UniConfKey & key() const
Returns the key field.
void del_setbool(const UniConfKey &key, bool *flag, bool recurse=true)
Cancels notification requested using add_setbool().
UniConfRoot()
Creates an empty UniConf tree with no mounted stores.
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 inv...
bool refresh() const
Refreshes information about this key recursively.
UniConfKey key() const
Returns the path of this node relative to its parent.
static void setbool_callback(bool *flag, const UniConf &, const UniConfKey &)
Internal callback for setbool style notifications.
A recursively composed dictionary for tree-structured data indexed by UniConfKey.
The UniMountTree implementation realized as a UniConfGen.
void notify(const UniConf &cfg, const UniConfKey &key)
Notifies that a key has changed.
UniConf instances function as handles to subtrees of a UniConf tree and expose a high-level interface...
UniWatchInfoTree * parent() const
Returns a pointer to the parent node, or NULL if there is none.
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 set...
bool recursive()
Returns watch recursion.
bool operator==(const UniWatchInfo &other) const
Equality test.
void del_callback(void *cookie, const UniConfKey &key, bool recurse=true)
Cancels notification requested using add_callback().
Deprecated: a UniConfGen that delegates all requests to an inner UniConf.
A default implementation of IUniConfGen, providing various handy features that save trouble when impl...
Represents the root of a hierarhical registry consisting of pairs of UniConfKeys and associated strin...
bool haschildren() const
Returns true if the node has children.