19 #include <nori/object.h>
23 std::map<std::string, NoriObjectFactory::Constructor> *NoriObjectFactory::m_constructors =
nullptr;
27 m_constructors =
new std::map<std::string, NoriObjectFactory::Constructor>();
28 (*m_constructors)[name] = constr;
static void registerClass(const std::string &name, const Constructor &constr)
Register an object constructor with the object factory.