Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

UniConfRoot Class Reference

#include <uniconfroot.h>

List of all members.


Detailed Description

Represents the root of a hierarhical registry consisting of pairs of UniConfKeys and associated string values.

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


Constructor & Destructor Documentation

UniConfRoot::UniConfRoot WvStringParm  moniker,
bool  refresh = true
 

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.

UniConfRoot::UniConfRoot UniConfGen gen,
bool  refresh = true
 

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.


The documentation for this class was generated from the following files:
Generated on Fri May 20 11:17:53 2005 for WvStreams by  doxygen 1.4.2