10 #include <AtomsGraph/Globals.h>
11 #include <AtomsGraph/Node.h>
27 typedef Node* (*creatorFn)();
37 T* createNode(
const std::string& typeName);
78 typedef std::map<std::string, creatorFn> FactoryMap;
81 FactoryMap m_factoryMap;
85 #include "NodeFactory.impl.h"
Node factory.
Definition: NodeFactory.h:24
static NodeFactory & instance()
Singleton access.
bool isRegistered(const std::string &name)
Checks if a node type is registered.
Node * createNode(const std::string &typeName)
Creates a new node.
std::vector< std::string > getRegisteredNodes()
Gets a list of all the node type registered.
void registerNode(const std::string &name, creatorFn funct)
Registers a node type.
void deregisterNode(const std::string &name)
Deregisters a node type.
AtomsGraph namespace.
Definition: PosePort.h:15