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:
46  UniConfValueTree *tree;
47 
48 protected:
49  virtual void gencallback(const UniConfKey &key, WvStringParm value);
50 };
51 
52 
53 #endif // __UNIFASTREGETGEN_H
virtual bool haschildren(const UniConfKey &key)
Returns true if a key has children.
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
Definition: wvstring.h:93
Represents a UniConf key which is a path in a hierarchy structured much like the traditional Unix fil...
Definition: uniconfkey.h:38
An abstract data container that backs a UniConf tree.
Definition: uniconfgen.h:39
virtual void gencallback(const UniConfKey &key, WvStringParm value)
Called by inner generator when a key changes.
A plain UniConfTree that holds keys and values.
Definition: uniconftree.h:152
virtual bool exists(const UniConfKey &key)
Without fetching its value, returns true if a key exists.
A UniConfGen that delegates all requests to an inner generator.
Definition: unifiltergen.h:17
WvString is an implementation of a simple and efficient printable-string class.
Definition: wvstring.h:329
IUniConfGen * inner() const
Returns the inner generator.
Definition: unifiltergen.h:33
A lightwight but slightly dangerous variant of UniCacheGen.