The mapper to create the targets from sources.
More...
#include <mapper.h>
|
| | Mapper () |
| |
| | ~Mapper () |
| |
|
std::shared_ptr< Updateable > | addSource (std::shared_ptr< Source > source) |
| | add a source instance
|
| |
|
void | addTarget (std::shared_ptr< Target > target) |
| | adds a target instance
|
| |
|
void | addFunction (std::shared_ptr< Function > function) |
| | adds a module instance
|
| |
| void | addAssignment (const std::string &target_name, const std::string &target_value_name, const std::string &function_name, const std::vector< ParameterValueDescription > ¶meter_values) |
| | adds a assignment call assignment
|
| |
| void | addAssignment (const std::string &target_name, const std::string &target_value_name, const std::string &source_name, const std::string &source_value_name) |
| | adds a simple source value to target value assignment
|
| |
| void | addAssignment (const std::string &target_name, const std::string &target_value_name, const std::string &const_value) |
| | adds a simple const value to target value assignment
|
| |
| std::shared_ptr< Source > | getSource (const std::string_view &source_name) const |
| | Get the source.
|
| |
| std::shared_ptr< Target > | getTarget (const std::string_view &target_name) const |
| | Get the target.
|
| |
| std::shared_ptr< AssignmentTrigger > | getTargetTrigger (const std::string_view &target_name) const |
| | Get the Target Trigger.
|
| |
|
void | initialize () |
| | initializes the mapper
|
| |
|
void | deinitialize () |
| | deintitialzes the mapper
|
| |
The mapper to create the targets from sources.
◆ Mapper()
| ddl::mapping::Mapper::Mapper |
( |
| ) |
|
◆ ~Mapper()
| ddl::mapping::Mapper::~Mapper |
( |
| ) |
|
◆ addAssignment() [1/3]
| void ddl::mapping::Mapper::addAssignment |
( |
const std::string & | target_name, |
|
|
const std::string & | target_value_name, |
|
|
const std::string & | const_value ) |
adds a simple const value to target value assignment
- Parameters
-
| target_name | the target name |
| target_value_name | the value name of the target to assign to |
| const_value | the const value to assign |
◆ addAssignment() [2/3]
| void ddl::mapping::Mapper::addAssignment |
( |
const std::string & | target_name, |
|
|
const std::string & | target_value_name, |
|
|
const std::string & | function_name, |
|
|
const std::vector< ParameterValueDescription > & | parameter_values ) |
adds a assignment call assignment
- Parameters
-
| target_name | the target name |
| target_value_name | the value name of the target to assign to |
| function_name | the function name to call within modulebool das |
| parameter_values | the parameter value list |
◆ addAssignment() [3/3]
| void ddl::mapping::Mapper::addAssignment |
( |
const std::string & | target_name, |
|
|
const std::string & | target_value_name, |
|
|
const std::string & | source_name, |
|
|
const std::string & | source_value_name ) |
adds a simple source value to target value assignment
- Parameters
-
| target_name | the target name |
| target_value_name | the value name of the target to assign to |
| source_name | the source name |
| source_value_name | the value name of the source to retrieve the value from |
◆ getSource()
| std::shared_ptr< Source > ddl::mapping::Mapper::getSource |
( |
const std::string_view & | source_name | ) |
const |
Get the source.
- Parameters
-
| source_name | the name of the source |
- Returns
- std::shared_ptr<const Source>
◆ getTarget()
| std::shared_ptr< Target > ddl::mapping::Mapper::getTarget |
( |
const std::string_view & | target_name | ) |
const |
Get the target.
- Parameters
-
| target_name | the name of the target |
- Returns
- std::shared_ptr<Target>
◆ getTargetTrigger()
| std::shared_ptr< AssignmentTrigger > ddl::mapping::Mapper::getTargetTrigger |
( |
const std::string_view & | target_name | ) |
const |
Get the Target Trigger.
- Parameters
-
| target_name | the name of the target |
- Returns
- std::shared_ptr<AssignmentTrigger>
The documentation for this class was generated from the following file:
- /workspace/conan/dev_essential/1.6.3/dw/stable/package/65324bff46e457721a7ba250afe9d61dc2b0e57a/include/ddl/mapping/mapper.h