WvStreams
unibachelorgen.cc
00001 /*
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 2005 Net Integration Technologies, Inc.
00004  *
00005  * A UniConf generator that refuses to commit() or refresh().  This is
00006  * useful in blocking propogation of these messages upstream.
00007  */
00008 
00009 #include "unibachelorgen.h"
00010 #include "wvmoniker.h"
00011 
00012 
00013 static IUniConfGen *creator(WvStringParm s, IObject *_obj)
00014 {
00015     return new UniBachelorGen(wvcreate<IUniConfGen>(s, _obj));
00016 }
00017 
00018 static WvMoniker<IUniConfGen> moniker("bachelor", creator);
00019 
00020 UniBachelorGen::UniBachelorGen(IUniConfGen *inner)
00021     : UniFilterGen(inner)
00022 {
00023 }
00024 
00025 UniBachelorGen::UniBachelorGen(WvStringParm moniker)
00026     : UniFilterGen(NULL)
00027 {
00028     setinner(wvcreate<IUniConfGen>(moniker));
00029 }
00030 
00031 void UniBachelorGen::commit()
00032 {
00033 }
00034 
00035 
00036 bool UniBachelorGen::refresh()
00037 {
00038     return false;
00039 }