WvStreams
unifastregetgen.h
1 /* -*- Mode: C++ -*-
2  * Worldvisions Weaver Software:
3  * Copyright (C) 2002-2005 Net Integration Technologies, Inc.
4  */
5 #ifndef __UNIFASTREGETGEN_H
6 #define __UNIFASTREGETGEN_H
7 
8 #include "unifiltergen.h"
9 
10 class UniConfValueTree;
11 
34 {
35 public:
37  virtual ~UniFastRegetGen();
38 
39  /***** Overridden members *****/
40  virtual WvString get(const UniConfKey &key);
41  virtual bool exists(const UniConfKey &key);
42  virtual bool haschildren(const UniConfKey &key);
43 
44 private:
45  IUniConfGen *inner;
46  UniConfValueTree *tree;
47 
48 protected:
49  virtual void gencallback(const UniConfKey &key, WvStringParm value);
50 };
51 
52 
53 #endif // __UNIFASTREGETGEN_H
UniFastRegetGen
A lightwight but slightly dangerous variant of UniCacheGen.
Definition: unifastregetgen.h:33
UniFastRegetGen::get
virtual WvString get(const UniConfKey &key)
Fetches a string value for a key from the registry.
Definition: unifastregetgen.cc:53
UniFastRegetGen::haschildren
virtual bool haschildren(const UniConfKey &key)
Returns true if a key has children.
Definition: unifastregetgen.cc:92
WvString
WvString is an implementation of a simple and efficient printable-string class.
Definition: wvstring.h:329
IUniConfGen
An abstract data container that backs a UniConf tree.
Definition: uniconfgen.h:39
UniConfKey
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
Definition: uniconfkey.h:38
UniFastRegetGen::exists
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.
Definition: unifastregetgen.cc:84
UniFastRegetGen::gencallback
virtual void gencallback(const UniConfKey &key, WvStringParm value)
Called by inner generator when a key changes.
Definition: unifastregetgen.cc:41
UniConfValueTree
A plain UniConfTree that holds keys and values.
Definition: uniconftree.h:152
UniFilterGen
A UniConfGen that delegates all requests to an inner generator.
Definition: unifiltergen.h:17