9 #include "unifastregetgen.h"
10 #include "uniconftree.h"
11 #include "wvmoniker.h"
23 UniFastRegetGen::UniFastRegetGen(
IUniConfGen *_inner) :
31 UniFastRegetGen::~UniFastRegetGen()
57 wvassert(tree,
"key: '%s'", key);
63 return WvString::null;
70 t = tree->
find(parentkey);
96 wvassert(tree,
"key: '%s'", key);
A lightwight but slightly dangerous variant of UniCacheGen.
UniConfKey removelast(int n=1) const
Returns the path formed by removing the last n segments of this path.
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 WvString get(const UniConfKey &key)
Fetches a string value for a key from the registry.
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.
const WvString & value() const
Returns the value field.
bool isnull() const
returns true if this string is null
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
void setvalue(WvStringParm value)
Sets the value field.
A type-safe version of WvMonikerBase that lets you provide create functions for object types other th...
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.
virtual void gencallback(const UniConfKey &key, WvStringParm value)
Called by inner generator when a key changes.
A plain UniConfTree that holds keys and values.
bool hastrailingslash() const
Returns true if the key has a trailing slash.
Sub * find(const UniConfKey &key) const
Finds the sub-node with the specified key.
UniConfKey last(int n=1) const
Returns the path formed by the n last segments of this path.
virtual bool haschildren(const UniConfKey &key)
Returns true if a key has children.
A UniConfGen that delegates all requests to an inner generator.