7 #include "unislowgen.h" 9 #ifndef _MSC_VER // FIXME:WLACH Is unistd even needed here?! 15 return new UniSlowGen(wvcreate<IUniConfGen>(s, _obj));
27 UniSlowGen::~UniSlowGen()
29 fprintf(stderr,
"%p: UniSlowGen: ran a total of %d slow operations.\n",
50 be_slow(
"get(%s)", key);
57 be_slow(
"exists(%s)", key);
64 be_slow(
"haschildren(%s)", key);
71 be_slow(
"iterator(%s)", key);
78 be_slow(
"recursiveiterator(%s)", key);
85 fprintf(stderr,
"%p: UniSlowGen: slow operation: %s\n",
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
The basic interface which is included by all other XPLC interfaces and objects.
virtual void commit()
Commits any changes.
An abstract data container that backs a UniConf tree.
An abstract iterator over keys and values in a generator.
const char * cstr() const
return a (const char *) for this string.
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.
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 counts all "potentially synchronous" (ie.
A type-safe version of WvMonikerBase that lets you provide create functions for object types other th...
virtual bool refresh()
Refreshes information about a key recursively.
virtual bool haschildren(const UniConfKey &key)
Returns true if a key has children.
virtual void commit()
Commits any changes.
virtual Iter * iterator(const UniConfKey &key)
Returns an iterator over the children of the specified key.
virtual bool refresh()
Refreshes information about a key recursively.
A UniConfGen that delegates all requests to an inner generator.
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 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.
virtual Iter * recursiveiterator(const UniConfKey &key)
Like iterator(), but the returned iterator is recursive, that is, it will return children of the imme...
virtual bool haschildren(const UniConfKey &key)
Returns true if a key has children.
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.