7 #ifndef __UNIFILTERGEN_H
8 #define __UNIFILTERGEN_H
10 #include "uniconfgen.h"
67 virtual void setv(
const UniConfPairList &pairs);
82 #endif //__UNIFILTERGEN_H
void setinner(IUniConfGen *inner)
Rebinds the inner generator and prepares its callback.
virtual bool keymap(const UniConfKey &unmapped_key, UniConfKey &mapped_key)
A mapping function for filters that remap one keyspace onto another.
virtual void set(const UniConfKey &key, WvStringParm value)
Stores a string value for a key into the registry.
virtual void gencallback(const UniConfKey &key, WvStringParm value)
Called by inner generator when a key changes.
virtual WvString get(const UniConfKey &key)
Fetches a string value for a key from the registry.
virtual Iter * iterator(const UniConfKey &key)
Returns an iterator over the children of the specified key.
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 bool isok()
Determines if the generator is usable and working properly.
virtual bool reversekeymap(const UniConfKey &mapped_key, UniConfKey &unmapped_key)
A mapping function for filters that unmap a keyspace.
IUniConfGen * inner() const
Returns the inner generator.
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.
virtual void setv(const UniConfPairList &pairs)
Stores multiple key-value pairs into the registry.
virtual bool refresh()
Refreshes information about a key recursively.
virtual void commit()
Commits any changes.
virtual bool haschildren(const UniConfKey &key)
Returns true if a key has children.
virtual void prefetch(const UniConfKey &key, bool recursive)
Indicate that we will eventually be interested in doing get(), haschildren(), or other "get-like" ope...
virtual void flush_buffers()
Flushes any commitment/notification buffers .
virtual Iter * recursiveiterator(const UniConfKey &key)
Like iterator(), but the returned iterator is recursive, that is, it will return children of the imme...
A UniConfGen that delegates all requests to an inner generator.