25 #ifndef _ODDBOBJECTID_INCLUDED_
26 #define _ODDBOBJECTID_INCLUDED_
113 OdDbStub* objectId) : m_Id (objectId) { }
123 bool isNull ()
const {
return m_Id == 0; }
136 #if defined(_MSC_VER) && (_MSC_VER > 1800)
144 OdDbStub* objectId) { m_Id = objectId;
return *
this; }
164 bool operator ! ()
const {
return isNull(); }
171 inline operator OdDbStub* ()
const {
return (OdDbStub*)m_Id; }
178 inline OdDbStubExt* operator -> ()
const {
return (OdDbStubExt*)m_Id; }
269 bool openErasedOne =
false)
const;
292 bool openErasedOne =
false)
const;
324 bool openErasedOne =
false)
const;
337 friend class OdDbStub;
374 OdDbStub* objectId) { m_Id = objectId;
return *
this; }
423 OdDbStub* objectId) { m_Id = objectId;
return *
this; }
473 OdDbStub* objectId) { m_Id = objectId;
return *
this; }
520 OdDbStub* objectId) { m_Id = (OdDbStub*)objectId;
return *
this; }
#define TOOLKIT_EXPORT_STATIC
OdSmartPtr< OdDbObject > OdDbObjectPtr
bool operator>=(const OdString &s1, const OdString &s2)
bool operator<=(const OdString &s1, const OdString &s2)
bool operator<(const OdString &s1, const OdString &s2)
bool operator>(const OdString &s1, const OdString &s2)
OdDbHardOwnershipId(const OdDbObjectId &objectId)
OdDbHardOwnershipId(OdDbStub *objectId)
OdDbHardPointerId(OdDbStub *objectId)
OdDbHardPointerId(const OdDbObjectId &objectId)
bool operator==(const OdDbObjectId &objectId) const
OdRxClass * objectClass() const
static TOOLKIT_EXPORT_STATIC const OdDbObjectId kNull
bool isEffectivelyErased() const
OdDbObjectPtr safeOpenObject(OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedOne=false) const
const OdDbHandle & getNonForwardedHandle() const
OdDbObjectPtr openObject(OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedOne=false) const
bool objectLeftOnDisk() const
const OdDbHandle & getHandle() const
bool operator!=(const OdDbObjectId &objectId) const
OdDbObjectId & operator=(OdDbStub *objectId)
OdDbObjectId(OdDbStub *objectId)
void bindObject(OdDbObject *pObj)
OdDbDatabase * database() const
OdResult openObject(OdDbObjectPtr &pObj, OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedOne=false) const
OdDbDatabase * originalDatabase() const
void convertToRedirectedId()
OdDbSoftOwnershipId(const OdDbObjectId &objectId)
OdDbSoftOwnershipId(OdDbStub *objectId)
OdDbSoftPointerId(const OdDbObjectId &objectId)
OdDbSoftPointerId(OdDbStub *objectId)
bool DAI_EXPORT operator!=(const OdDAI::OdSelect &left, const OdDAI::OdSelect &right)
bool DAI_EXPORT operator==(const OdFileDescriptionAuto &left, const OdFileDescriptionAuto &right)