Registry class used to declare and register a plug-in node.
More...
#include <Registry.h>
Registry class used to declare and register a plug-in node.
◆ Factory
The factory function prototype.
◆ ~Registry()
| virtual maquina::Registry::~Registry |
( |
| ) |
|
|
inlinevirtual |
◆ register_node() [1/2]
| virtual void maquina::Registry::register_node |
( |
const char * |
class_name, |
|
|
const char * |
base_class_name, |
|
|
Factory |
factory, |
|
|
const std::vector< PlugDescriptor > & |
plug_desc, |
|
|
const char * |
ui_descriptor = "" |
|
) |
| |
|
pure virtual |
Declare a plug-in node.
The plug-in must declare the plug-in nodes using this method.
- Parameters
-
| class_name | in The new class name |
| base_class_name | in The parent class name, "Node" is the base class |
| factory | in The factory function to allocate a node, provided by the plug-in |
| plug_desc | in The plugs descriptor |
| ui_descriptor | in A json string to describe the node user interface |
◆ register_node() [2/2]
| virtual void maquina::Registry::register_node |
( |
const char * |
class_name, |
|
|
const char * |
base_class_name, |
|
|
const std::vector< PlugDescriptor > & |
plug_desc, |
|
|
const char * |
ui_descriptor = "" |
|
) |
| |
|
pure virtual |
Declare a plug-in node.
The plug-in must declare the plug-in nodes using this method.
- Parameters
-
| class_name | in The new class name |
| base_class_name | in The parent class name, "Node" is the base class |
| plug_desc | in The plugs descriptor |
| ui_descriptor | in A json string to describe the node user interface |
◆ register_node_loader()
| virtual void maquina::Registry::register_node_loader |
( |
const std::shared_ptr< NodeLoaderPlugin > & |
node_loader | ) |
|
|
pure virtual |
Declare a node loader plug-in.
- Parameters
-
| node_loader | The node loader plug-in |
◆ register_value() [1/2]
template<class UD >
| void maquina::Registry::register_value |
( |
const char * |
parent_type_name = "Value" | ) |
|
|
inline |
Register a new type of value.
◆ register_value() [2/2]
| virtual void maquina::Registry::register_value |
( |
const char * |
type_name, |
|
|
std::shared_ptr< const maquina::UserData > |
default_value, |
|
|
const char * |
parent_type_name = "Value" |
|
) |
| |
|
pure virtual |
Register a new type of value.
The documentation for this class was generated from the following file: