Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

CUnknown Class Reference

Inheritance diagram for CUnknown:

INondelegatingUnknown List of all members.

Public Methods

 CUnknown (IUnknown *)
virtual ~CUnknown ()
virtual com_result Init ()
virtual void FinalRelease ()
com_result FinishQI (IUnknown *, void **)
virtual com_result NondelegatingQueryInterface (const hypIID &, void **)
virtual t_ulong NondelegatingAddRef ()
virtual t_ulong NondelegatingRelease ()

Static Public Methods

long ActiveComponents ()

Protected Methods

IUnknownGetOuterUnknown () const

Protected Attributes

long m_cRef
IUnknownm_pUnknownOuter

Static Protected Attributes

long ms_cActiveComponents = 0

Detailed Description

IUnknown Implementation by default. Derive your component from this class.
Todo:
example for more information.


Member Function Documentation

long CUnknown::ActiveComponents ( ) [inline, static]
 

Returns the number of actives components.

void CUnknown::FinalRelease ( ) [virtual]
 

Notifies the final release of the derived class. Called by Release funcion. Can be overwrited.

com_result CUnknown::FinishQI ( IUnknown * pI,
void ** ppv )
 

Assignes two pointers to a same interface. So the reference counter of the interface is incremented.

IUnknown * CUnknown::GetOuterUnknown ( ) const [inline, protected]
 

Gets the aggregated component.

com_result CUnknown::Init ( ) [inline, virtual]
 

Initialisation function used for the aggregation cases. Can be overwrite.

t_ulong CUnknown::NondelegatingAddRef ( ) [virtual]
 

Must be overwrite if the component supports another interfaces than IUnknown.

Reimplemented from INondelegatingUnknown.

com_result CUnknown::NondelegatingQueryInterface ( const hypIID & iid,
void ** ppv ) [virtual]
 

Must be overwrite if the component supports another interfaces than IUnknown.

Reimplemented from INondelegatingUnknown.

t_ulong CUnknown::NondelegatingRelease ( ) [virtual]
 

Must be overwrite if the component supports another interfaces than IUnknown.

Reimplemented from INondelegatingUnknown.


Member Data Documentation

long CUnknown::m_cRef [protected]
 

Reference counter of the component.

IUnknown * CUnknown::m_pUnknownOuter [protected]
 

Pointer to a component which aggragates this object.

long CUnknown::ms_cActiveComponents = 0 [static, protected]
 

Actifs components instanciated by the server. Is used to check if the server can be unloaded.


The documentation for this class was generated from the following files:
Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.