00001 /* -*- Mode: C++ -*- 00002 * Worldvisions Weaver Software: 00003 * Copyright (C) 2002 Net Integration Technologies, Inc. 00004 * 00005 * A UniConf generator that stores keys in memory. 00006 */ 00007 #ifndef __UNITEMPGEN_H 00008 #define __UNITEMPGEN_H 00009 00010 #include "uniconfgen.h" 00011 #include "uniconftree.h" 00012 00019 class UniTempGen : public UniConfGen 00020 { 00021 public: 00022 UniConfValueTree *root; 00023 bool dirty; 00025 UniTempGen(); 00026 virtual ~UniTempGen(); 00027 00028 /***** Overridden members *****/ 00029 00030 virtual WvString get(const UniConfKey &key); 00031 virtual void set(const UniConfKey &key, WvStringParm value); 00032 virtual void flush_buffers() { }; 00033 virtual bool exists(const UniConfKey &key); 00034 virtual bool haschildren(const UniConfKey &key); 00035 virtual Iter *iterator(const UniConfKey &key); 00036 00037 protected: 00038 }; 00039 00040 00041 #endif // __UNITEMPGEN_H