20 #ifndef OMNI_TYPEIDINTERFACE_H_
21 #define OMNI_TYPEIDINTERFACE_H_
40 #define OMNI_TYPEID(type_id) \
41 BOOSTX_TYPE_ID(omni::Id, type_id, typeId, getTypeId)
43 #define OMNI_REGISTER_CLASS(FACTORY, CLASS_NAME) \
44 OMNI_TYPEID(# CLASS_NAME) \
45 virtual void registerInFactory() const { \
46 FACTORY::template reg<CLASS_NAME>(); \
Id type for classes An Id must only contain alpha numerical characters and must begin with a letter...
Definition: Id.h:34
virtual void registerInFactory() const =0
Register the inherited class in factory.
virtual Id getTypeId() const =0
Returns type id of object.
virtual ~TypeIdInterface()
Definition: TypeIdInterface.h:30
Abstract Interface with a single virtual member function which returns.
Definition: TypeIdInterface.h:28