28 #ifndef _DAI_ENTITY_H_
29 #define _DAI_ENTITY_H_
41 class DAI_EXPORT Entity :
public DictionaryInstance
53 : m_instantiable(
false)
61 Entity(OdAnsiString
name,
bool instantiable)
63 , m_instantiable(instantiable)
77 const char *schemaName,
78 const char *entityName,
80 Entity* &thisClassDef,
81 Entity* pBaseClass =
NULL);
88 const OdAnsiString
name()
const {
return m_name; };
96 const AttributeArr& attributes()
const
105 const std::list<Entity*>& supertypes()
const
116 bool isSupertypeOf(
const Entity* subtype)
const;
123 bool instantiable()
const {
124 return m_instantiable;
134 m_attributes.push_back(attributeDef);
135 attributeDef->setParentEntity(
this);
142 void appendSuperType(Entity *supertype)
144 m_supertypes.push_back(supertype);
150 AttributeArr m_attributes;
151 std::list<Entity*> m_supertypes;
172 typedef std::list<EntityPtr > EntityList;
176 #endif // _DAI_ENTITY_H_