Switchboard Extension SDK
|
Creates node instances. More...
#include <NodeFactory.hpp>
Public Member Functions | |
virtual std::string | getNodeTypePrefix ()=0 |
Returns the prefix of the node type. | |
virtual std::vector< std::string > | getNodeTypes () |
Returns the list of node types that can be created by this factory. | |
virtual Node * | createNode (const std::string &type, const std::map< std::string, std::any > &config)=0 |
Creates an Node instance based on type information. |
Creates node instances.
NodeFactory class.
|
pure virtual |
Creates an Node instance based on type information.
The returned node instances need to be freed by the user of the NodeFactory.
type | The type of the node. |
config | Configuration values for the node. |
|
pure virtual |
Returns the prefix of the node type.
The prefix is used to identify the node type and it follows the format: <extension name>.<node type>.
|
inlinevirtual |
Returns the list of node types that can be created by this factory.
The node types are returned as a vector of strings, where each string is the type name of the node.