objectFactory.hpp
Go to the documentation of this file.
static SmartPointer< Base > create()
creator
Definition: objectFactory.hpp:108
File contains template of deep-coping smart pointer.
ObjectFactoryHelper(std::string)
constructor
Definition: objectFactory.hpp:118
Definition: cadHoliday.cpp:3
ObjectFactory(const ObjectFactory &)
copy constructor
Definition: objectFactory.hpp:51
SmartPointer< T > getObject(std::string name)
returns the a SmartPointer pointing new object of type dependent on string provided ...
Definition: objectFactory.hpp:75
void registerObject(std::string, CreateT)
registers an object
Definition: objectFactory.hpp:66
SmartPointer< T >(* CreateT)()
auxiliary definition of smart pointer
Definition: objectFactory.hpp:30
ObjectFactory & operator=(const ObjectFactory &)
assignment constructor
Definition: objectFactory.hpp:57
static ObjectFactory & instance()
returns reference to instance of singleton factory
Definition: objectFactory.hpp:87
std::map< std::string, CreateT > creators
Map holding the creators of class and their string codes.
Definition: objectFactory.hpp:38