Saner handling if config.mk doesn't exist: use a default config.defaults.mk.
[wvstreams.git] / include / uninullgen.h
blob761ac8643c9a232d668283a0d9e23bb6846d1b67
1 /* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * A generator that is always empty and rejects changes.
6 */
7 #ifndef __UNICONFNULL_H
8 #define __UNICONFNULL_H
10 #include "uniconfgen.h"
12 /**
13 * A generator that is always empty and rejects changes.
15 * To mount, use the moniker "null:".
18 class UniNullGen : public UniConfGen
20 public:
21 UniNullGen() { };
22 virtual ~UniNullGen() { };
24 /***** Overridden methods *****/
26 virtual void flush_buffers() { }
27 virtual WvString get(const UniConfKey &key) { return WvString::null; }
28 virtual void set(const UniConfKey &key, WvStringParm value) { }
29 virtual void setv(const UniConfPairList &pairs) { }
30 virtual bool haschildren(const UniConfKey &key) { return false; }
31 virtual Iter *iterator(const UniConfKey &key) { return new NullIter(); }
35 #endif // __UNICONFNULL_H