PK_ENTITY_ask_class   

PK_ERROR_code_t   PK_ENTITY_ask_class
(
--- received arguments ---
PK_ENTITY_t       entity,           --- entity

--- returned arguments ---
PK_CLASS_t *const class             --- class of entity
)


This function returns the given entity's concrete class.


For example, if an entity is a line, the function returns PK_CLASS_line
rather than PK_CLASS_curve, PK_CLASS_geom or PK_CLASS_entity.