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);
83 void UniSlowGen::be_slow(WvStringParm what)
85 fprintf(stderr,
"%p: UniSlowGen: slow operation: %s\n",
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.
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.
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.
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
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.
A UniConfGen that counts all "potentially synchronous" (ie.
virtual void commit()
Commits any changes.
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.
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 Iter * recursiveiterator(const UniConfKey &key)
Like iterator(), but the returned iterator is recursive, that is, it will return children of the imme...
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.
An abstract iterator over keys and values in a generator.