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

unireadonlygen.cc

Go to the documentation of this file.
00001 /*
00002  * Worldvisions Weaver Software:
00003  *   Copyright (C) 1997-2002 Net Integration Technologies, Inc.
00004  * 
00005  * A read only generator wrapper.
00006  */
00007 #include "unireadonlygen.h"
00008 #include "wvmoniker.h"
00009 
00010 // if 'obj' is non-NULL and is a UniConfGen, wrap that; otherwise wrap the
00011 // given moniker.
00012 static UniConfGen *creator(WvStringParm s, IObject *obj, void *)
00013 {
00014     UniConfGen *gen = NULL;
00015     
00016     if (obj)
00017         gen = mutate<UniConfGen>(obj);
00018     if (!gen)
00019         gen = wvcreate<UniConfGen>(s);
00020     
00021     return new UniReadOnlyGen(gen);
00022 }
00023 
00024 static WvMoniker<UniConfGen> reg("readonly", creator);

Generated on Sat Feb 21 21:05:22 2004 for WvStreams by doxygen 1.3.5