7 #ifndef __UNITRANSACTIONGEN_H
8 #define __UNITRANSACTIONGEN_H
10 #include "uniconfgen.h"
100 virtual void setv(
const UniConfPairList &pairs);
void apply_values(UniConfValueTree *newcontents, const UniConfKey §ion)
A recursive helper function for apply_changes().
virtual WvString get(const UniConfKey &key)
Fetches a string value for a key from the registry.
virtual void flush_buffers()
Flushes any commitment/notification buffers .
void cancel_changes(UniConfChangeTree *node, const UniConfKey §ion)
A recursive helper function for refresh().
~UniTransactionGen()
Destroys the UniTransactionGen and the underlying generator.
virtual Iter * iterator(const UniConfKey &key)
Returns an iterator over the children of the specified key.
void apply_changes(UniConfChangeTree *node, const UniConfKey §ion)
A recursive helper function for commit().
void cancel_values(UniConfValueTree *newcontents, const UniConfKey §ion)
A recursive helper function for cancel_changes().
void deletion_simulator(const UniConfKey &key)
A recursive helper function for create_change().
WvString is an implementation of a simple and efficient printable-string class.
An abstract data container that backs a UniConf tree.
UniConfValueTree * create_value(UniConfValueTree *parent, const UniConfKey &key, int seg, WvStringParm value)
Four functions to implement the functionality of set() so that it isn't two pages long.
void gencallback(const UniConfKey &key, WvStringParm value)
The callback function for the underlying generator.
virtual void set(const UniConfKey &key, WvStringParm value)
Stores a string value for a key into the registry.
void deletion_visitor(const UniConfValueTree *node, void *userdata)
A UniConfTree visitor function for set_value(), cancel_values(), and cancel_changes().
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
A UniConfGen that represents pending transactions to another generator.
virtual bool refresh()
Refreshes information about a key recursively.
virtual void commit()
Commits any changes.
A default implementation of IUniConfGen, providing various handy features that save trouble when impl...
UniTransactionGen(IUniConfGen *_base)
Constructs a UniTransactionGen for the given underlying generator, which must be non-null.
void deletion_simulator2(const UniConfKey &key)
A recursive helper function for set_change().
A plain UniConfTree that holds keys and values.
virtual bool isok()
Determines if the generator is usable and working properly.
virtual void setv(const UniConfPairList &pairs)
Stores multiple key-value pairs into the registry.
An abstract iterator over keys and values in a generator.