#include <ObjectBase.hpp>
Inheritance diagram for COM::ObjectBase< Base >:

Public Member Functions | |
| ObjectBase () | |
| Default constructor. | |
| virtual | ~ObjectBase () |
| Destructor. | |
| virtual HRESULT | QueryInterfaceImpl (const IID &rIID, void **ppInterface) |
| Query the object for a particular interface. | |
| virtual ULONG | AddRefImpl () |
| Increment the objects reference count. | |
| virtual ULONG | ReleaseImpl () |
| Decrement the objects reference count. | |
| virtual HRESULT | InterfaceSupportsErrorInfoImpl (const IID &rIID) |
| Queries if the interface supports COM exceptiopns. | |
Protected Member Functions | |
| virtual void * | interface_cast (const IID &rIID)=0 |
| Template Method used to obtain the requested interface, if supported. | |
Private Attributes | |
| LONG | m_nRefCount |
| The object reference count. | |
This provides an implementation of IUnknown for dynamically allocated objects. It also marks the interface as supporting COM exceptions which are handled automatically by the macro COM_CATCH_* in ErrorInfo.hpp.
| COM::ObjectBase< Base >::ObjectBase | ( | ) | [inline] |
Default constructor.
| COM::ObjectBase< Base >::~ObjectBase | ( | ) | [inline, virtual] |
Destructor.
| HRESULT COM::ObjectBase< Base >::QueryInterfaceImpl | ( | const IID & | rIID, | |
| void ** | ppInterface | |||
| ) | [inline, virtual] |
Query the object for a particular interface.
| ULONG COM::ObjectBase< Base >::AddRefImpl | ( | ) | [inline, virtual] |
Increment the objects reference count.
| ULONG COM::ObjectBase< Base >::ReleaseImpl | ( | ) | [inline, virtual] |
Decrement the objects reference count.
| HRESULT COM::ObjectBase< Base >::InterfaceSupportsErrorInfoImpl | ( | const IID & | rIID | ) | [inline, virtual] |
Queries if the interface supports COM exceptiopns.
| virtual void* COM::ObjectBase< Base >::interface_cast | ( | const IID & | rIID | ) | [protected, pure virtual] |
Template Method used to obtain the requested interface, if supported.
LONG COM::ObjectBase< Base >::m_nRefCount [private] |
The object reference count.
1.5.2