Saner handling if config.mk doesn't exist: use a default config.defaults.mk.
[wvstreams.git] / include / uniwvconfgen.h
blob5a61c965b6ed24d42b4d49a4069e5408cbf08bd8
1 /* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 2002 Net Integration Technologies, Inc.
4 *
5 * A generator to make a UniConf object out of a WvConf.
6 */
8 #ifndef __UNICONFWVGEN_H
9 #define __UNICONFWVGEN_H
11 #include "uniconfgen.h"
13 class WvConf;
14 /**
15 * A UniConf generator for backwards compatibility with WvConf
17 class UniWvConfGen : public UniConfGen
19 private:
20 UniConfKey *tempkey;
21 WvString tempvalue;
23 void notify(void *userdata, WvStringParm section, WvStringParm entry,
24 WvStringParm oldval, WvStringParm newval);
26 protected:
27 WvConf *cfg;
29 class WvConfIter;
31 public:
32 UniWvConfGen(WvConf *_cfg);
33 ~UniWvConfGen();
35 /***** Overridden members *****/
37 virtual void flush_buffers() { }
38 virtual WvString get(const UniConfKey &key);
39 virtual void set(const UniConfKey &key, WvStringParm value);
40 virtual void setv(const UniConfPairList &pairs);
41 virtual bool haschildren(const UniConfKey &key);
42 virtual Iter *iterator(const UniConfKey &key);
45 #endif //__UNICONFWVGEN_H