WvStreams
Main Page
Modules
Classes
Files
File List
File Members
include
uninullgen.h
1
/* -*- Mode: C++ -*-
2
* Worldvisions Weaver Software:
3
* Copyright (C) 1997-2002 Net Integration Technologies, Inc.
4
*
5
* A generator that is always empty and rejects changes.
6
*/
7
#ifndef __UNICONFNULL_H
8
#define __UNICONFNULL_H
9
10
#include "uniconfgen.h"
11
18
class
UniNullGen
:
public
UniConfGen
19
{
20
public
:
21
UniNullGen
() { };
22
virtual
~
UniNullGen
() { };
23
24
/***** Overridden methods *****/
25
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
(); }
32
};
33
34
35
#endif // __UNICONFNULL_H
Generated on Fri Mar 15 2013 00:01:36 for WvStreams by
1.8.3.1