CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
OdOxOleLinkManager Class Referenceabstract

#include <odole.h>

Public Member Functions

virtual IUnknown * GetIUnknown (OdDbObject *pObject)=0
 
virtual bool SetIUnknown (OdDbObject *pObject, IUnknown *pIUnknown=0)=0
 
virtual IUnknown * GetIUnknown (OdDbDatabase *pDb)=0
 
virtual bool SetIUnknown (OdDbDatabase *pDb, IUnknown *pIUnknown=0)=0
 
virtual IDispatch * GetDocIDispatch (OdDbDatabase *pDatabase)=0
 
virtual bool SetDocIDispatch (OdDbDatabase *pDatabase, IDispatch *pIDispatch=0)=0
 

Detailed Description

This class maintains a link between an object and its respective COM wrapper. Corresponding C++ library: TD_Db <group Other_Classes>

Definition at line 46 of file odole.h.

Member Function Documentation

◆ GetDocIDispatch()

virtual IDispatch * OdOxOleLinkManager::GetDocIDispatch ( OdDbDatabase pDatabase)
pure virtual

Return the IDispatch of the document to which the specified database belongs.

Parameters
pDb[in] Pointer to the database.
Remarks
Returns NULL if the database does not belong to a document.

◆ GetIUnknown() [1/2]

virtual IUnknown * OdOxOleLinkManager::GetIUnknown ( OdDbDatabase pDb)
pure virtual

Returns the IUnknown of the COM wrapper for the specified database.

\param pDb [in]  Pointer to the database.

\remarks

Returns NULL if no wrapper is found.

◆ GetIUnknown() [2/2]

virtual IUnknown * OdOxOleLinkManager::GetIUnknown ( OdDbObject pObject)
pure virtual

Returns the IUnknown of the COM wrapper for the specified database -resident object.

\param pObject [in]  Pointer to the object.

\remarks

Returns NULL if no wrapper is found.

◆ SetDocIDispatch()

virtual bool OdOxOleLinkManager::SetDocIDispatch ( OdDbDatabase pDatabase,
IDispatch *  pIDispatch = 0 
)
pure virtual

Sets the link between the specified database and the specified document to which it belongs..

Parameters
pDb[in] Pointer to the database.
pIDispatch[in] Pointer to the IDispatch of the document..
Remarks
If IDispatch is NULL, the link is removed.

◆ SetIUnknown() [1/2]

virtual bool OdOxOleLinkManager::SetIUnknown ( OdDbDatabase pDb,
IUnknown *  pIUnknown = 0 
)
pure virtual

Sets the link between the specified database and the specified COM wrapper.

\param pDb [in]  Pointer to the database.
Parameters
pIUnknown[in] Pointer to the COM wrapper.
\remarks
If pIUnknown is NULL, the link is removed.

◆ SetIUnknown() [2/2]

virtual bool OdOxOleLinkManager::SetIUnknown ( OdDbObject pObject,
IUnknown *  pIUnknown = 0 
)
pure virtual

Sets the link between the specified database -resident object and the specified COM wrapper.

\param pObject [in]  Pointer to the object.
Parameters
pIUnknown[in] Pointer to the COM wrapper.
\remarks
If pIUnknown is NULL, the link is removed.

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