WvStreams
uniconf
unibachelorgen.cc
1
/*
2
* Worldvisions Weaver Software:
3
* Copyright (C) 2005 Net Integration Technologies, Inc.
4
*
5
* A UniConf generator that refuses to commit() or refresh(). This is
6
* useful in blocking propogation of these messages upstream.
7
*/
8
9
#include "unibachelorgen.h"
10
#include "wvmoniker.h"
11
12
13
static
IUniConfGen
*creator(WvStringParm s,
IObject
*_obj)
14
{
15
return
new
UniBachelorGen
(wvcreate<IUniConfGen>(s, _obj));
16
}
17
18
static
WvMoniker<IUniConfGen>
moniker(
"bachelor"
, creator);
19
20
UniBachelorGen::UniBachelorGen(
IUniConfGen
*inner)
21
:
UniFilterGen
(inner)
22
{
23
}
24
25
UniBachelorGen::UniBachelorGen(WvStringParm moniker)
26
:
UniFilterGen
(NULL)
27
{
28
setinner(wvcreate<IUniConfGen>(moniker));
29
}
30
31
void
UniBachelorGen::commit
()
32
{
33
}
34
35
36
bool
UniBachelorGen::refresh
()
37
{
38
return
false
;
39
}
IUniConfGen
An abstract data container that backs a UniConf tree.
Definition:
uniconfgen.h:39
UniBachelorGen
Definition:
unibachelorgen.h:14
WvMoniker
A type-safe version of WvMonikerBase that lets you provide create functions for object types other th...
Definition:
wvmoniker.h:61
UniBachelorGen::commit
virtual void commit()
Commits any changes.
Definition:
unibachelorgen.cc:31
IObject
Definition:
IObject.h:65
UniBachelorGen::refresh
virtual bool refresh()
Refreshes information about a key recursively.
Definition:
unibachelorgen.cc:36
UniFilterGen
A UniConfGen that delegates all requests to an inner generator.
Definition:
unifiltergen.h:17
Generated by
1.8.17