Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

uninullgen.h

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 bool haschildren(const UniConfKey &key) { return false; }
00030     virtual Iter *iterator(const UniConfKey &key) { return new NullIter(); }
00031 };
00032 
00033 
00034 #endif // __UNICONFNULL_H

Generated on Sun Apr 3 14:46:39 2005 for WvStreams by  doxygen 1.4.2