|
CFx SDK Documentation
2020SP3
|
#include <daiObjectId.h>
Public Types | |
| typedef OdDbHandle | handle_type |
Public Member Functions | |
| OdDAIObjectId () | |
| OdDAIObjectId (OdDbStub *objectId) | |
| bool | isNull () const |
| void | setNull () |
| bool | isValid () const |
| OdDAIObjectId & | operator= (const OdDAIObjectId &objectId) |
| OdDAIObjectId & | operator= (OdDbStub *objectId) |
| bool | operator< (const OdDAIObjectId &objectId) const |
| bool | operator> (const OdDAIObjectId &objectId) const |
| bool | operator>= (const OdDAIObjectId &objectId) const |
| bool | operator<= (const OdDAIObjectId &objectId) const |
| bool | operator== (const OdDAIObjectId &objectId) const |
| bool | operator!= (const OdDAIObjectId &objectId) const |
| bool | operator! () const |
| operator OdDbStub * () const | |
| OdDbStub * | operator-> () const |
| OdDbBaseDatabase * | model () const |
| void | erase () const |
| bool | isErased () const |
| const OdDbHandle & | getHandle () const |
| OdDAI::EntityInstancePtr | openObject (OdDAI::OpenMode openMode=OdDAI::kForRead, bool openErasedOne=false) const |
| OdDAI::EntityInstancePtr | get () const |
Static Public Attributes | |
| static DAI_EXPORT_STATIC const OdDAIObjectId | kNull |
| static DAI_EXPORT_STATIC const handle_type | kNullHandle |
Protected Member Functions | |
| OdDbStub * | id () const |
Protected Attributes | |
| OdDbStub * | m_Id |
Friends | |
| class | OdDbStub |
A class that implements an identifier of the Data Access Interface (DAI) object functionality.
Definition at line 67 of file daiObjectId.h.
| typedef OdDbHandle OdDAIObjectId::handle_type |
Definition at line 70 of file daiObjectId.h.
| OdDAIObjectId::OdDAIObjectId | ( | ) |
Creates a new empty object identifier.
| OdDAIObjectId::OdDAIObjectId | ( | OdDbStub * | objectId | ) |
Creates a new object identifier based on a specified value.
| objectId | [in] A pointer to an OdDbStub object that stores data for the newly created identifier. |
| void OdDAIObjectId::erase | ( | ) | const |
Erases the object associated with the identifier.
| OdDAI::EntityInstancePtr OdDAIObjectId::get | ( | ) | const |
Retrieves the object that is referenced by the identifier.
| const OdDbHandle& OdDAIObjectId::getHandle | ( | ) | const |
Retrieves the database handle of the object referenced by the identifier.
|
protected |
| bool OdDAIObjectId::isErased | ( | ) | const |
Determines whether the object associated with the identifier was erased.
| bool OdDAIObjectId::isNull | ( | ) | const |
Returns whether the identifier is NULL.
| bool OdDAIObjectId::isValid | ( | ) | const |
Retrieves whether the identifier is valid.
| OdDbBaseDatabase* OdDAIObjectId::model | ( | ) | const |
Retrieves the model identifier object is associated with.
| OdDAI::EntityInstancePtr OdDAIObjectId::openObject | ( | OdDAI::OpenMode | openMode = OdDAI::kForRead, |
| bool | openErasedOne = false |
||
| ) | const |
Opens the database object referenced by the identifier in a specified mode.
| openMode | [in] An <link OdDAI::OpenMode, open mode>. |
| openErasedOne | [in] A flag that determines whether erased objects are open (equal to true) or not (equal to false). |
|
inline |
The operator for convertion to a raw pointer to the OdDbStub object.
Definition at line 171 of file daiObjectId.h.
|
inline |
The negation operator for the object identifier.
Definition at line 164 of file daiObjectId.h.
| bool OdDAIObjectId::operator!= | ( | const OdDAIObjectId & | objectId | ) | const |
The non-equality operator for the object identifier.
| objectId | [in] Another identifier (right-hand operand of the operation) to be compared with. |
|
inline |
The operator for the access through a pointer to an identifier.
Definition at line 178 of file daiObjectId.h.
| bool OdDAIObjectId::operator< | ( | const OdDAIObjectId & | objectId | ) | const |
The "less than" operator for the object identifier.
| objectId | [in] Another identifier (right-hand operand of the operation) to be compared with. |
| bool OdDAIObjectId::operator<= | ( | const OdDAIObjectId & | objectId | ) | const |
The "less or equal than" operator for the object identifier.
| objectId | [in] Another identifier (right-hand operand of the operation) to be compared with. |
| OdDAIObjectId& OdDAIObjectId::operator= | ( | const OdDAIObjectId & | objectId | ) |
The assignment operator for the object identifier.
| objectId | [in] Another identifier (right-hand operand of the assignment operation). |
| OdDAIObjectId& OdDAIObjectId::operator= | ( | OdDbStub * | objectId | ) |
The assignment operator for the object identifier.
| objectId | [in] Another identifier (right-hand operand of the assignment operation) represented with a raw pointer to an OdDbStub object. |
| bool OdDAIObjectId::operator== | ( | const OdDAIObjectId & | objectId | ) | const |
The equality operator for the object identifier.
| objectId | [in] Another identifier (right-hand operand of the operation) to be compared with. |
| bool OdDAIObjectId::operator> | ( | const OdDAIObjectId & | objectId | ) | const |
The "more than" operator for the object identifier.
| objectId | [in] Another identifier (right-hand operand of the operation) to be compared with. |
| bool OdDAIObjectId::operator>= | ( | const OdDAIObjectId & | objectId | ) | const |
The "more or equal than" operator for the object identifier.
| objectId | [in] Another identifier (right-hand operand of the operation) to be compared with. |
| void OdDAIObjectId::setNull | ( | ) |
Sets the identifier to the NULL state.
|
friend |
Definition at line 237 of file daiObjectId.h.
|
static |
Definition at line 72 of file daiObjectId.h.
|
static |
Definition at line 73 of file daiObjectId.h.
|
protected |
Definition at line 238 of file daiObjectId.h.