WvStreams
Public Types | Public Member Functions | Public Attributes | List of all members
WvMoniker< T > Class Template Reference

A type-safe version of WvMonikerBase that lets you provide create functions for object types other than IObject. More...

#include <wvmoniker.h>

Inheritance diagram for WvMoniker< T >:
Inheritance graph
[legend]

Public Types

typedef T * CreateFunc(WvStringParm parms, IObject *obj)
 
typedef T * CreateFunc(WvStringParm parms, IObject *obj)
 

Public Member Functions

 WvMoniker (WvStringParm _id, CreateFunc *_func, const bool override=false)
 
 WvMoniker (WvStringParm _id, CreateFunc *_func, const bool override=false)
 

Public Attributes

WvString id
 
WvMonikerRegistryreg
 

Detailed Description

template<class T>
class WvMoniker< T >

A type-safe version of WvMonikerBase that lets you provide create functions for object types other than IObject.

(The objects themselves have to be derived from IObject, however.)

See WvMonikerBase for details.

Example: static IWvStream *createfunc(WvStringParm s, IObject *obj, void *userdata) { return new WvStream; }

static WvMoniker<IWvStream> registration("ssl", createfunc);

Definition at line 61 of file debian/libwvstreams-dev/usr/include/wvstreams/wvmoniker.h.

Member Typedef Documentation

◆ CreateFunc [1/2]

template<class T >
typedef T * WvMoniker< T >::CreateFunc(WvStringParm parms, IObject *obj)

◆ CreateFunc [2/2]

template<class T >
typedef T * WvMoniker< T >::CreateFunc(WvStringParm parms, IObject *obj)

Definition at line 64 of file include/wvmoniker.h.

Constructor & Destructor Documentation

◆ WvMoniker() [1/2]

template<class T >
WvMoniker< T >::WvMoniker ( WvStringParm  _id,
CreateFunc *  _func,
const bool  override = false 
)
inline

◆ WvMoniker() [2/2]

template<class T >
WvMoniker< T >::WvMoniker ( WvStringParm  _id,
CreateFunc *  _func,
const bool  override = false 
)
inline

Definition at line 66 of file include/wvmoniker.h.

Member Data Documentation

◆ id

WvString WvMonikerBase::id
inherited

◆ reg

WvMonikerRegistry * WvMonikerBase::reg
inherited

The documentation for this class was generated from the following files: