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

wvmoniker.h File Reference

#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< T >
 A type-safe version of WvMonikerBase that lets you provide create functions for object types other than IObject. More...

Typedefs

typedef IObjectWvMonikerCreateFunc (WvStringParm parms, IObject *obj, void *userdata)

Functions

IObjectwvcreate (const XUUID &iid, WvStringParm s, IObject *obj=NULL, void *userdata=NULL)
 Create an object registered in a WvMonikerRegistry.
template<class T>
Twvcreate (WvStringParm s, IObject *obj=NULL, void *userdata=NULL)
 Create an object registered in a WvMonikerRegistry.


Typedef Documentation

typedef IObject* WvMonikerCreateFunc(WvStringParm parms, IObject *obj, void *userdata)
 

Definition at line 17 of file wvmoniker.h.

Referenced by WvMonikerRegistry::add(), WvMoniker< T >::WvMoniker(), and WvMonikerBase::WvMonikerBase().


Function Documentation

template<class T>
T* wvcreate WvStringParm  s,
IObject obj = NULL,
void *  userdata = NULL
[inline]
 

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.

IObject* wvcreate const XUUID iid,
WvStringParm  s,
IObject obj = NULL,
void *  userdata = NULL
 

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().


Generated on Wed Dec 15 15:08:13 2004 for WvStreams by  doxygen 1.3.9.1