OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
ocf::TUnknown Class Reference

Standard implementation of a controlling IUnknown for an object, to be inherited with other COM interfaces into an implementation class whose IUnknown implementation delegates to TUnknown::Outer. More...

#include <ocf/oleutil.h>

Inheritance diagram for ocf::TUnknown:
ocf::TOcApp ocf::TOcControlEvent ocf::TOcDataProvider ocf::TOcLinkView ocf::TOcPart ocf::TOcView ocf::TOcControl ocf::TOcRemView ocf::TOcxView

Public Member Functions

 operator IUnknown & ()
 
 operator IUnknown * ()
 
IUnknown * SetOuter (IUnknown *outer=0)
 
IUnknown * GetOuter ()
 
unsigned long GetRefCount ()
 
unsigned long AdjustRefCount (int i)
 
IUnknown & Aggregate (TUnknown &inner)
 

Protected Member Functions

 TUnknown ()
 
virtual ~TUnknown ()
 
IUnknown & ThisUnknown ()
 
virtual HRESULT QueryObject (const GUID &iid, void **pif)
 QueryObject used when TUnknown is in constructor/destructor.
 

Protected Attributes

IUnknown * Outer
 

Friends

class TUnknownI
 

Detailed Description

Standard implementation of a controlling IUnknown for an object, to be inherited with other COM interfaces into an implementation class whose IUnknown implementation delegates to TUnknown::Outer.

Definition at line 264 of file oleutil.h.

Constructor & Destructor Documentation

◆ TUnknown()

ocf::TUnknown::TUnknown ( )
protected

Definition at line 229 of file oleutil.cpp.

◆ ~TUnknown()

ocf::TUnknown::~TUnknown ( )
protectedvirtual

Definition at line 255 of file oleutil.cpp.

References _OBJ_FULLTYPENAME, _T, TRACEX, and WARNX.

Member Function Documentation

◆ AdjustRefCount()

unsigned long ocf::TUnknown::AdjustRefCount ( int i)
inline

Definition at line 314 of file oleutil.h.

◆ Aggregate()

IUnknown & ocf::TUnknown::Aggregate ( TUnknown & inner)

Definition at line 243 of file oleutil.cpp.

References Aggregate(), and Outer.

◆ GetOuter()

IUnknown * ocf::TUnknown::GetOuter ( )
inline

Definition at line 269 of file oleutil.h.

◆ GetRefCount()

unsigned long ocf::TUnknown::GetRefCount ( )

Definition at line 337 of file oleutil.cpp.

References Outer.

◆ operator IUnknown &()

ocf::TUnknown::operator IUnknown & ( )
inline

Definition at line 266 of file oleutil.h.

◆ operator IUnknown *()

ocf::TUnknown::operator IUnknown * ( )
inline

Definition at line 267 of file oleutil.h.

◆ QueryObject()

HRESULT ocf::TUnknown::QueryObject ( const GUID & iid,
void ** pif )
protectedvirtual

QueryObject used when TUnknown is in constructor/destructor.

Definition at line 279 of file oleutil.cpp.

◆ SetOuter()

IUnknown * ocf::TUnknown::SetOuter ( IUnknown * outer = 0)
inline

Definition at line 298 of file oleutil.h.

References Outer, and SetOuter().

◆ ThisUnknown()

IUnknown & ocf::TUnknown::ThisUnknown ( )
inlineprotected

Definition at line 278 of file oleutil.h.

Friends And Related Symbol Documentation

◆ TUnknownI

friend class TUnknownI
friend

Definition at line 295 of file oleutil.h.

Member Data Documentation

◆ Outer

IUnknown* ocf::TUnknown::Outer
protected

Definition at line 279 of file oleutil.h.


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