25#ifndef _ODDBOBJECTID_INCLUDED_
26#define _ODDBOBJECTID_INCLUDED_
105 OdDbStub* objectId) : m_Id (objectId) { }
115 bool isNull ()
const {
return m_Id == 0; }
128#if defined(_MSC_VER) && (_MSC_VER > 1800)
136 OdDbStub* objectId) { m_Id = objectId;
return *
this; }
156 bool operator ! ()
const {
return isNull(); }
163 inline operator OdDbStub* ()
const {
return (OdDbStub*)m_Id; }
170 inline OdDbStubExt* operator -> ()
const {
return (OdDbStubExt*)m_Id; }
261 bool openErasedOne =
false)
const;
284 bool openErasedOne =
false)
const;
316 bool openErasedOne =
false)
const;
329 friend class OdDbStub;
338 return std::hash<const OdDbStub*>()( key.operator OdDbStub * ( ) );
376 OdDbStub* objectId) { m_Id = objectId;
return *
this; }
425 OdDbStub* objectId) { m_Id = objectId;
return *
this; }
475 OdDbStub* objectId) { m_Id = objectId;
return *
this; }
522 OdDbStub* objectId) { m_Id = (OdDbStub*)objectId;
return *
this; }
#define TOOLKIT_EXPORT_STATIC
OdSmartPtr< OdDbObject > OdDbObjectPtr
bool operator!=(T left, const OdGiVariant::EnumType right)
bool operator==(T left, const OdGiVariant::EnumType right)
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)
OdDbDatabase * originalDatabase() const
bool operator==(const OdDbObjectId &objectId) const
static TOOLKIT_EXPORT_STATIC const OdDbObjectId kNull
OdDbDatabase * database() const
OdRxClass * objectClass() const
const OdDbHandle & getHandle() const
bool isEffectivelyErased() const
const OdDbHandle & getNonForwardedHandle() const
OdDbObjectPtr safeOpenObject(OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedOne=false) const
OdDbObjectId & operator=(OdDbStub *objectId)
OdDbObjectPtr openObject(OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedOne=false) const
bool objectLeftOnDisk() const
bool operator!=(const OdDbObjectId &objectId) const
OdDbObjectId(OdDbStub *objectId)
void bindObject(OdDbObject *pObj)
OdResult openObject(OdDbObjectPtr &pObj, OdDb::OpenMode openMode=OdDb::kForRead, bool openErasedOne=false) const
void convertToRedirectedId()
OdDbSoftOwnershipId(const OdDbObjectId &objectId)
OdDbSoftOwnershipId(OdDbStub *objectId)
OdDbSoftPointerId(const OdDbObjectId &objectId)
OdDbSoftPointerId(OdDbStub *objectId)
size_t operator()(const OdDbObjectId &key) const