WvStreams
|
00001 /* -*- Mode: C++ -*- 00002 * Worldvisions Weaver Software: 00003 * Copyright (C) 1997-2002 Net Integration Technologies, Inc. 00004 * 00005 * A generator that is always empty and rejects changes. 00006 */ 00007 #ifndef __UNICONFNULL_H 00008 #define __UNICONFNULL_H 00009 00010 #include "uniconfgen.h" 00011 00018 class UniNullGen : public UniConfGen 00019 { 00020 public: 00021 UniNullGen() { }; 00022 virtual ~UniNullGen() { }; 00023 00024 /***** Overridden methods *****/ 00025 00026 virtual void flush_buffers() { } 00027 virtual WvString get(const UniConfKey &key) { return WvString::null; } 00028 virtual void set(const UniConfKey &key, WvStringParm value) { } 00029 virtual void setv(const UniConfPairList &pairs) { } 00030 virtual bool haschildren(const UniConfKey &key) { return false; } 00031 virtual Iter *iterator(const UniConfKey &key) { return new NullIter(); } 00032 }; 00033 00034 00035 #endif // __UNICONFNULL_H