Holds node configuration and can be used to create node classes and node binding classes.
More...
#include <node_builder.hh>
Holds node configuration and can be used to create node classes and node binding classes.
- Author
- N. S. Oblath
stream_manager creates a node_builder instance for every node in a stream and passes the node configuration to the node_builder. Fresh copies of a node class and a node binding class can then be made from these node_builder classes.
Definition at line 107 of file node_builder.hh.
◆ node_builder()
◆ ~node_builder()
◆ apply_config()
void apply_config |
( |
midge::node * |
a_node, |
|
|
const scarab::param_node & |
a_config |
|
) |
| const |
|
inlinevirtual |
Applies the builder's configuration information to the given node Throws psyllid::error if the node is of the wrong type or if applying the configuration fails
Implements node_binding.
Definition at line 291 of file node_builder.hh.
◆ binding()
◆ build()
virtual midge::node* build |
( |
| ) |
|
|
pure virtual |
◆ configure_builder()
void configure_builder |
( |
const scarab::param_node & |
a_config | ) |
|
|
inline |
◆ dump_builder_config()
void dump_builder_config |
( |
scarab::param_node & |
a_config | ) |
|
|
inline |
◆ dump_config()
void dump_config |
( |
const midge::node * |
a_node, |
|
|
scarab::param_node & |
a_config |
|
) |
| const |
|
inlinevirtual |
Dumps the configuration from the given node and returns it to the caller; does not affect the builder's configuration information Throws psyllid::error if the node is the wrong type or if the extraction fails
Implements node_binding.
Definition at line 297 of file node_builder.hh.
◆ operator=()
◆ replace_builder_config()
void replace_builder_config |
( |
const scarab::param_node & |
a_config | ) |
|
|
inline |
◆ run_command()
bool run_command |
( |
midge::node * |
a_node, |
|
|
const std::string & |
a_cmd, |
|
|
const scarab::param_node & |
a_args |
|
) |
| const |
|
inlinevirtual |
◆ snake_case_mv_referrable()
snake_case_mv_referrable |
( |
std::string |
, |
|
|
name |
|
|
) |
| |
|
protected |
◆ f_binding
◆ f_config
scarab::param_node f_config |
|
protected |
The documentation for this class was generated from the following files: