InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
HelperInterface Class Reference

#include <HelperInterface.h>

Public Member Functions

 HelperInterface (IPMUnknown *boss)
 
IPMUnknownQueryInterface (PMIID interfaceID) const
 
void AddRef () const
 
void Release () const
 
IControllingUnknownGetBoss ()
 

Friends

class ObjectModelBase
 

Detailed Description

This class provides default implementations of QueryInterface, AddRef, and Release for implementations that inherit from IPMUnknown. You should not need to access this directly; normally, you just inherit from CPMUnknown to get this functionality.

See Also
IPMUnknown
CPMUnknown

Constructor & Destructor Documentation

HelperInterface::HelperInterface (IPMUnknownboss)
inline

Constructor.

Member Function Documentation

void HelperInterface::AddRef () const
inline

Default implementation of AddRef. Calls the boss to handle it. Does nothing if there is no boss.

See Also
IPMUnknown::AddRef()
IControllingUnknown* HelperInterface::GetBoss ()
inline

Return the boss

Returns
returns a pointer to the boss object (the IControllingUnknown).
IPMUnknown* HelperInterface::QueryInterface (PMIID interfaceID) const
inline

Default implementation of QueryInterface. Calls the boss to handle the query. Does nothing if there is no boss.

See Also
IPMUnknown::QueryInterface()
void HelperInterface::Release () const
inline

Default implementation of Release. Calls the boss to handle it. Does nothing if there is no boss.

See Also
IPMUnknown::Release()