#include "wvxplc.h"
#include "wvstring.h"
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | WvMonikerBase |
WvMonikerBase is an auto-registration class for putting things into a WvMonikerRegistry. More... | |
class | WvMoniker |
A type-safe version of WvMonikerBase that lets you provide create functions for object types other than IObject. More... | |
Typedefs | |
typedef IObject * | WvMonikerCreateFunc (WvStringParm parms, IObject *obj, void *userdata) |
Functions | |
IObject * | wvcreate (const XUUID &iid, WvStringParm s, IObject *obj=NULL, void *userdata=NULL) |
Create an object registered in a WvMonikerRegistry. | |
template<class T> T * | wvcreate (WvStringParm s, IObject *obj=NULL, void *userdata=NULL) |
Create an object registered in a WvMonikerRegistry. |
|
Definition at line 17 of file wvmoniker.h. Referenced by WvMonikerRegistry::add(), WvMoniker< T >::WvMoniker(), and WvMonikerBase::WvMonikerBase(). |
|
Create an object registered in a WvMonikerRegistry. Exactly which registry is determined by the template type T. s, obj, and userdata are the parameters to supply to the object's factory. Most factories need only 's', which is the moniker itself. Example: IWvStream *s = wvcreate<IWvStream>("tcp:localhost:25"); IWvStream *s_ssl = wvcreate<IWvStream>("ssl:", s); Definition at line 104 of file wvmoniker.h. References wvcreate(), and WvStringParm. |
|
Create an object registered in a WvMonikerRegistry. The iid specifies which registry to look in, and s, obj, and userdata are the parameters to supply to the object's factory. Most factories need only 's', which is the moniker itself. Most people don't use this function. See the templated, type-safe version of wvcreate() below. Definition at line 188 of file wvmoniker.cc. References WvMonikerRegistry::create(), WvMonikerRegistry::find_reg(), WvMonikerRegistry::release(), and WvStringParm. Referenced by wvcreate(). |