2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * A generator that is always empty and rejects changes.
7 #ifndef __UNICONFNULL_H
8 #define __UNICONFNULL_H
10 #include "uniconfgen.h"
13 * A generator that is always empty and rejects changes.
15 * To mount, use the moniker "null:".
18 class UniNullGen
: public UniConfGen
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