1 #ifndef _utl_ObjectRegistrar_h_
2 #define _utl_ObjectRegistrar_h_
13 #include <utl/ObjectFactory.h>
31 template<
class ObjectType,
class ObjectFactory>
36 {
return ObjectType::Create; }
66 template<
class ObjectType,
68 class CreatorPolicy = StandardCreator<ObjectType, ObjFactoryType> >
94 ObjectFactoryType::Register(ObjectType::GetRegistrationId(),
95 CreatorPolicy::GetCreator());
104 template<
class Object,
class ObjectFactory,
class CreatorPolicy>
112 #endif // _utl_ObjectRegistrar_h_
ObjFactoryType::ObjectPtrType ObjectPtrType
ObjFactoryType ObjectFactoryType
The type of the ObjectFactory we register with.
static const ObjectRegistrar * fgAutoRegistrar
Class for the automatic registration of an object.
static ObjectFactory::CreatorType GetCreator()
static ObjectRegistrar * AutoRegister()
Class for the automatic creation of an object.