WvStreams
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
13static IUniConfGen *creator(WvStringParm s, IObject *_obj)
14{
15 return new UniBachelorGen(wvcreate<IUniConfGen>(s, _obj));
16}
17
18static WvMoniker<IUniConfGen> moniker("bachelor", creator);
19
20UniBachelorGen::UniBachelorGen(IUniConfGen *inner)
21 : UniFilterGen(inner)
22{
23}
24
25UniBachelorGen::UniBachelorGen(WvStringParm moniker)
26 : UniFilterGen(NULL)
27{
28 setinner(wvcreate<IUniConfGen>(moniker));
29}
30
34
35
37{
38 return false;
39}
The basic interface which is included by all other XPLC interfaces and objects.
Definition IObject.h:65
An abstract data container that backs a UniConf tree.
Definition uniconfgen.h:40
virtual void commit()
Commits any changes.
virtual bool refresh()
Refreshes information about a key recursively.
A UniConfGen that delegates all requests to an inner generator.
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
Definition wvstring.h:94
A type-safe version of WvMonikerBase that lets you provide create functions for object types other th...
Definition wvmoniker.h:62