7 #ifndef __UNIREPLICATEGEN_H
8 #define __UNIREPLICATEGEN_H
10 #include "uniconftree.h"
36 : gen(_gen), was_ok(gen->
isok()), auto_free(_auto_free) {}
37 ~Gen() {
if (auto_free) WVRELEASE(gen); }
39 bool isok() {
return was_ok = gen->
isok(); }
44 bool processing_callback;
46 Gen *first_ok()
const;
48 void replicate_if_any_have_become_ok();
52 void deltacallback(Gen *src_gen,
const UniConfKey &key,
60 void prepend(
IUniConfGen *gen,
bool autofree =
true);
61 void append(
IUniConfGen *gen,
bool autofree =
true);
69 virtual void setv(
const UniConfPairList &pairs);
74 #endif // __UNIREPLICATEGEN_H
virtual void flush_buffers()
Flushes any commitment/notification buffers .
A UniConf generator that replicates generators between an ordered list of inner generators,...
virtual void set(const UniConfKey &key, WvStringParm value)
Stores a string value for a key into the registry.
WvString is an implementation of a simple and efficient printable-string class.
An abstract data container that backs a UniConf tree.
virtual void setv(const UniConfPairList &pairs)
Stores multiple key-value pairs into the registry.
virtual bool refresh()
Refreshes information about a key recursively.
virtual WvString get(const UniConfKey &key)
Fetches a string value for a key from the registry.
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
virtual void commit()
Commits any changes.
A default implementation of IUniConfGen, providing various handy features that save trouble when impl...
virtual bool isok()=0
Determines if the generator is usable and working properly.
virtual bool isok()
Determines if the generator is usable and working properly.
virtual Iter * iterator(const UniConfKey &key)
Returns an iterator over the children of the specified key.