24 #ifndef _DAI_ENTITY_INSTANCE_H_
25 #define _DAI_ENTITY_INSTANCE_H_
61 Model* owningModel()
const;
84 virtual void setInverseCounterParts() {};
89 virtual void resetInverseCounterParts() {};
96 bool isInstanceOf(
const char *entityName)
const;
103 bool isInstanceOf(
const Entity *entityDef)
const;
110 bool isKindOf(
const char *entityName)
const;
117 bool isKindOf(
const Entity *entityDef)
const;
123 virtual Entity* getInstanceType()
const = 0;
129 virtual OdAnsiString typeName()
const = 0;
139 virtual OdRxValue getAttr(
const OdAnsiString &attrName)
const = 0;
147 virtual bool putAttr(
const OdAnsiString &explicitAttrName,
const OdRxValue &val) = 0;
154 virtual bool testAttr(
const OdAnsiString &attrName)
const = 0;
161 virtual bool testAttr(
const AttributePtr& attribute)
const;
168 virtual void unsetAttr(
const OdAnsiString &explicitAttrName) = 0;
182 virtual bool isPersistent()
const {
return m_id !=
NULL; }
190 virtual OdDbStub* id()
const {
return m_id; };
214 friend class ModelContents;
225 #endif // _DAI_ENTITY_INSTANCE_H_