CFx SDK Documentation  2022 SP0
Public Member Functions | List of all members
OdDbObjectContextPE Class Referenceabstract

#include <DbObjectContextPE.h>

Inheritance diagram for OdDbObjectContextPE:
OdDbObjectContextInterface OdRxObject OdDbObjectContextBlkRefPE OdDbObjectContextDimPE OdDbObjectContextFcfPE OdDbObjectContextHatchPE OdDbObjectContextLeaderPE OdDbObjectContextMLeaderPE OdDbObjectContextMTextPE OdDbObjectContextTextPE

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdDbObjectContextPE)
 
virtual OdResult setDefaultContext (OdDbObject *, const OdDbObjectContext &)
 
virtual OdDbObjectContextDataPtr getDefaultContextData (const OdDbObject *, const OdString &) const
 
virtual OdResult addContext (OdDbObject *, const OdDbObjectContext &) const
 
virtual OdDbObjectContextDataPtr createContextData (const OdDbObject *pObj, const OdDbObjectContext &ctx, const OdDbObjectContext &def) const =0
 
virtual bool hasContext (const OdDbObject *, const OdDbObjectContext &) const
 
virtual OdResult removeContext (OdDbObject *, const OdDbObjectContext &) const
 
virtual bool supportsCollection (const OdDbObject *, const OdString &) const
 
virtual OdDbObjectContextDataPtr getContextData (const OdDbObject *, const OdDbObjectContext &) const
 
- Public Member Functions inherited from OdDbObjectContextInterface
 ODRX_DECLARE_MEMBERS (OdDbObjectContextInterface)
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
virtual void addRef ()=0
 
virtual void release ()=0
 
virtual long numRefs () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual void copyFrom (const OdRxObject *pSource)
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Additional Inherited Members

- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

Definition at line 43 of file DbObjectContextPE.h.

Member Function Documentation

◆ addContext()

virtual OdResult OdDbObjectContextPE::addContext ( OdDbObject pObject,
const OdDbObjectContext context 
) const
virtual

Adds a context to the specified object.

\param pObject [in]  Pointer to the object.
\param context [in]  Name of the context to add.

\returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbObjectContextInterface.

Reimplemented in OdDbObjectContextAttributePE, OdDbObjectContextHatchPE, OdDbObjectContextDimPE, OdDbObjectContextBlkRefPE, and OdDbObjectContextMLeaderPE.

◆ createContextData()

virtual OdDbObjectContextDataPtr OdDbObjectContextPE::createContextData ( const OdDbObject pObj,
const OdDbObjectContext ctx,
const OdDbObjectContext def 
) const
pure virtual

◆ getContextData()

virtual OdDbObjectContextDataPtr OdDbObjectContextPE::getContextData ( const OdDbObject ,
const OdDbObjectContext  
) const
virtual

◆ getDefaultContextData()

virtual OdDbObjectContextDataPtr OdDbObjectContextPE::getDefaultContextData ( const OdDbObject ,
const OdString  
) const
virtual

◆ hasContext()

virtual bool OdDbObjectContextPE::hasContext ( const OdDbObject pObject,
const OdDbObjectContext context 
) const
virtual

Returns whether a context is used by a specified object.

\param pObject [in]  Pointer to the object.
\param context [in]  Name of the context.

\returns
Returns true if the object uses the named context, or returns
false if it does not.

Implements OdDbObjectContextInterface.

◆ ODRX_DECLARE_MEMBERS()

OdDbObjectContextPE::ODRX_DECLARE_MEMBERS ( OdDbObjectContextPE  )

◆ removeContext()

virtual OdResult OdDbObjectContextPE::removeContext ( OdDbObject pObject,
const OdDbObjectContext context 
) const
virtual

Removes a context from the specified object.

\param pObject [in]  Pointer to the object.
\param context [in]  Name of the context to remove.

\returns
Returns eOk if successful, or an appropriate error code if not.

Implements OdDbObjectContextInterface.

Reimplemented in OdDbObjectContextBlkRefPE, and OdDbObjectContextAttributePE.

◆ setDefaultContext()

virtual OdResult OdDbObjectContextPE::setDefaultContext ( OdDbObject ,
const OdDbObjectContext  
)
virtual

Reimplemented in OdDbObjectContextBlkRefPE.

◆ supportsCollection()

virtual bool OdDbObjectContextPE::supportsCollection ( const OdDbObject pObject,
const OdString collectionName 
) const
virtual

Returns whether a context collection is supported by a specified object.

\param pObject [in]  Pointer to the object.
\param collectionName [in]  Name of the context collection.

\returns
Returns true if the object supports the named context collection, or returns
false if it does not.

Implements OdDbObjectContextInterface.


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