7 #ifndef __UNIMOUNTGEN_H
8 #define __UNIMOUNTGEN_H
10 #include "uniconfgen.h"
11 #include "wvmoniker.h"
12 #include "wvstringlist.h"
102 virtual void setv(
const UniConfPairList &pairs);
111 UniGenMount *findmount(
const UniConfKey &key);
114 UniGenMount *findmountunder(
const UniConfKey &key);
129 bool has_subkey(
const UniConfKey &key, UniGenMount *found = NULL);
131 struct UniGenMountPairs;
136 #endif //__UNIMOUNTGEN_H
virtual ~UniMountGen()
Destroys the UniConf tree along with all uncommitted data.
virtual bool ismountpoint(const UniConfKey &key)
Determines if a key is a mountpoint.
UniConfKey removefirst(int n=1) const
Returns the path formed by removing the first n segments of this path.
virtual IUniConfGen * mount(const UniConfKey &key, WvStringParm moniker, bool refresh)
Mounts a generator at a key using a moniker.
virtual WvString get(const UniConfKey &key)
Fetches a string value for a key from the registry.
virtual bool refresh()
Refreshes information about a key recursively.
virtual void flush_buffers()
Flushes any commitment/notification buffers .
UniMountGen()
Creates an empty UniConf tree with no mounted stores.
virtual void setv(const UniConfPairList &pairs)
Stores multiple key-value pairs into the registry.
virtual IUniConfGen * whichmount(const UniConfKey &key, UniConfKey *mountpoint)
Finds the generator that owns a key.
virtual bool haschildren(const UniConfKey &key)
Returns true if a key has children.
WvString is an implementation of a simple and efficient printable-string class.
An abstract data container that backs a UniConf tree.
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
virtual void commit()
Commits any changes.
virtual void unmount(IUniConfGen *gen, bool commit)
Unmounts the generator at a key and releases it.
virtual IUniConfGen * mountgen(const UniConfKey &key, IUniConfGen *gen, bool refresh)
Mounts a generator at a key.
virtual Iter * recursiveiterator(const UniConfKey &key)
Like iterator(), but the returned iterator is recursive, that is, it will return children of the imme...
virtual void set(const UniConfKey &key, WvStringParm value)
Stores a string value for a key into the registry.
A default implementation of IUniConfGen, providing various handy features that save trouble when impl...
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.
void zap(bool destroy=true)
Clears the linked list.
The UniMountTree implementation realized as a UniConfGen.
virtual Iter * iterator(const UniConfKey &key)
Returns an iterator over the children of the specified key.
int numsegments() const
Returns the number of segments in this path.
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
A linked list container class.