00001 /* -*- Mode: C++ -*- 00002 * Worldvisions Weaver Software: 00003 * Copyright (C) 2002 Net Integration Technologies, Inc. 00004 * 00005 * A generator to make a UniConf object out of a WvConf. 00006 */ 00007 00008 #ifndef __UNICONFWVGEN_H 00009 #define __UNICONFWVGEN_H 00010 00011 #include "uniconfgen.h" 00012 00013 class WvConf; 00014 00015 class UniWvConfGen : public UniConfGen 00016 { 00017 private: 00018 UniConfKey *tempkey; 00019 WvString tempvalue; 00020 00021 void notify(void *userdata, WvStringParm section, WvStringParm entry, 00022 WvStringParm oldval, WvStringParm newval); 00023 00024 protected: 00025 WvConf &cfg; 00026 00027 class WvConfIter; 00028 00029 public: 00030 UniWvConfGen(WvConf &_cfg); 00031 00032 /***** Overridden members *****/ 00033 00034 virtual void flush_buffers() { } 00035 virtual WvString get(const UniConfKey &key); 00036 virtual void set(const UniConfKey &key, WvStringParm value); 00037 virtual bool haschildren(const UniConfKey &key); 00038 virtual Iter *iterator(const UniConfKey &key); 00039 }; 00040 00041 #endif //__UNICONFWVGEN_H