Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

uninullgen.h

Go to the documentation of this file.
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 00012 /** 00013 * A generator that is always empty and rejects changes. 00014 * 00015 * To mount, use the moniker "null:". 00016 * 00017 */ 00018 class UniNullGen : public UniConfGen 00019 { 00020 public: 00021 UniNullGen() { }; 00022 virtual ~UniNullGen() { }; 00023 00024 /***** Overridden methods *****/ 00025 00026 virtual WvString get(const UniConfKey &key) { return WvString::null; } 00027 virtual void set(const UniConfKey &key, WvStringParm value) { } 00028 virtual bool haschildren(const UniConfKey &key) { return false; } 00029 virtual Iter *iterator(const UniConfKey &key) { return new NullIter(); } 00030 }; 00031 00032 00033 #endif // __UNICONFNULL_H

Generated on Tue Oct 5 01:09:19 2004 for WvStreams by doxygen 1.3.7