CFx SDK Documentation  2022 SP0
Public Member Functions | List of all members
OdDbObjectOverrule Class Reference

#include <DbObjectOverrule.h>

Inheritance diagram for OdDbObjectOverrule:
OdRxOverrule OdRxObject

Public Member Functions

 ODRX_DECLARE_MEMBERS (OdDbObjectOverrule)
 
 OdDbObjectOverrule ()
 
virtual OdResult open (OdDbObject *pSubject, OdDb::OpenMode mode)
 
virtual OdResult close (OdDbObject *pSubject)
 
virtual OdResult erase (OdDbObject *pSubject, bool erasing)
 
virtual OdDbObjectPtr deepClone (const OdDbObject *pSubject, OdDbIdMapping &idMap, OdDbObject *pOwner, bool bPrimary=true)
 
virtual OdDbObjectPtr wblockClone (const OdDbObject *pSubject, OdDbIdMapping &idMap, OdDbObject *pOwner, bool bPrimary=true)
 
- Public Member Functions inherited from OdRxOverrule
 ODRX_DECLARE_MEMBERS (OdRxOverrule)
 
virtual ~OdRxOverrule ()
 
virtual bool isApplicable (const OdRxObject *pOverruledSubject) const =0
 
- 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 OdRxOverrule
static OdResult addOverrule (OdRxClass *pClass, OdRxOverrule *pOverrule, bool bAddAtLast=false)
 
static OdResult removeOverrule (OdRxClass *pClass, OdRxOverrule *pOverrule)
 
static void setIsOverruling (bool bIsOverruling)
 
static bool isOverruling ()
 
static bool hasOverrule (const OdRxObject *pSubject, OdRxClass *pOverruleClass)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Detailed Description

This class overrules a subset of operations which an object of a database specifies. It is used as a base class for classes derived from OdDbObject to change their behavior. Each default implementation calls the corresponding method of the target class.

Corresponding C++ library: TD_Db <group OdDb_Classes>

Definition at line 39 of file DbObjectOverrule.h.

Constructor & Destructor Documentation

◆ OdDbObjectOverrule()

OdDbObjectOverrule::OdDbObjectOverrule ( )

Constructor creates an instance of this class.

Member Function Documentation

◆ close()

virtual OdResult OdDbObjectOverrule::close ( OdDbObject pSubject)
virtual

Overrules the OdDbObject::subClose() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pSubject[in] A raw pointer to an object.

◆ deepClone()

virtual OdDbObjectPtr OdDbObjectOverrule::deepClone ( const OdDbObject pSubject,
OdDbIdMapping idMap,
OdDbObject pOwner,
bool  bPrimary = true 
)
virtual

Overrules the OdDbObject::subDeepClone() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pSubject[in] A raw pointer to an object.
idMap[in] A current object ID map.

◆ erase()

virtual OdResult OdDbObjectOverrule::erase ( OdDbObject pSubject,
bool  erasing 
)
virtual

Overrules the OdDbObject::subErase() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pSubject[in] A raw pointer to an object.
erasing[in] An erase status mode that was passed in the erase() method.

◆ ODRX_DECLARE_MEMBERS()

OdDbObjectOverrule::ODRX_DECLARE_MEMBERS ( OdDbObjectOverrule  )

◆ open()

virtual OdResult OdDbObjectOverrule::open ( OdDbObject pSubject,
OdDb::OpenMode  mode 
)
virtual

Overrules the OdDbObject::subOpen() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pSubject[in] A raw pointer to an object.
mode[in] A mode to be opened in.

◆ wblockClone()

virtual OdDbObjectPtr OdDbObjectOverrule::wblockClone ( const OdDbObject pSubject,
OdDbIdMapping idMap,
OdDbObject pOwner,
bool  bPrimary = true 
)
virtual

Overrules the OdDbObject::subWblockClone() method and calls it in the default implementation. This method returns eOk if successful.

Parameters
pSubject[in] A raw pointer to an object.
idMap[in] A current object ID map.

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