10#include <switchboard/export.h>
11#include <switchboard_core/NodeTypeInfo.hpp>
12#include <switchboard_core/Node.hpp>
20namespace switchboard {
67 using NodeCreator = std::function<
Node*(
const SBAnyMap&)>;
80 std::unique_ptr<Impl> pImpl;
virtual std::vector< NodeTypeInfo > getNodeTypes()
Returns the list of node types that can be created by this factory.
virtual ~NodeFactory()
NodeFactory destructor.
virtual Node * createNode(const std::string &type, const SBAnyMap &config)
Creates an Node instance based on type information.
NodeFactory()
NodeFactory constructor.
virtual std::string getNodeTypePrefix()=0
Returns the prefix of the node type.
void registerNode(const NodeTypeInfo &type, NodeCreator creator)
Registers a node type with the factory.
Definition NodeTypeInfo.hpp:24