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

WvMonikerBase Class Reference

#include <wvmoniker.h>

Inherited by WvMoniker< T >.

Collaboration diagram for WvMonikerBase:

[legend]
List of all members.

Detailed Description

WvMonikerBase is an auto-registration class for putting things into a WvMonikerRegistry.

When a WvMonikerBase instance is created, it registers a moniker prefix ("test:", "ssl:", "ini:", etc) and a factory function that can be used to create an IObject using that prefix.

When the instance is destroyed, it auto-unregisters the moniker prefix from the registry.

You can't actually create one of these, because it's not typesafe. See WvMoniker<T> instead.

Definition at line 32 of file wvmoniker.h.

Public Attributes

WvString id
WvMonikerRegistryreg

Protected Member Functions

 WvMonikerBase (const XUUID &iid, WvStringParm _id, WvMonikerCreateFunc *func)
 ~WvMonikerBase ()


Constructor & Destructor Documentation

WvMonikerBase::WvMonikerBase const XUUID iid,
WvStringParm  _id,
WvMonikerCreateFunc func
[protected]
 

Definition at line 166 of file wvmoniker.cc.

References WvMonikerRegistry::add(), DEBUGLOG, WvMonikerRegistry::find_reg(), reg, WvMonikerCreateFunc, and WvStringParm.

WvMonikerBase::~WvMonikerBase  )  [protected]
 

Definition at line 177 of file wvmoniker.cc.

References DEBUGLOG, WvMonikerRegistry::del(), reg, and WvMonikerRegistry::release().


Member Data Documentation

WvString WvMonikerBase::id
 

Definition at line 40 of file wvmoniker.h.

WvMonikerRegistry* WvMonikerBase::reg
 

Definition at line 41 of file wvmoniker.h.

Referenced by WvMonikerBase(), and ~WvMonikerBase().


The documentation for this class was generated from the following files:
Generated on Sat Mar 13 14:58:42 2004 for WvStreams by doxygen 1.3.6-20040222