MapAssignment.
More...
MapAssignment.
Definition at line 33 of file map_assignment.h.
◆ MapAssignment()
CTOR.
- Parameters
-
[in] | to | Name of assigned signal or element |
◆ connect()
Connects the target element or signal with a source.
- Parameters
-
[in] | source_element_path | The complete path to the source element it is constructed with [SignalName].[ElementName] |
- Return values
-
ERR_INVALID_ARG | Source is empty |
a_util::result::SUCCESS | Everything went fine |
◆ getFrom()
const std::string& getFrom |
( |
| ) |
const |
Returns the source element name of the assignment (or an empty string)
- Returns
- the from name
Referenced by ddl::mapping::operator==().
◆ loadFromDOM()
Initializes the assignment from a assignment-dom element.
- Parameters
-
[in] | assignment | The dom element from which to import |
[out] | errors | The error list for debug |
- Return values
-
ERR_INVALID_ARG | Missing name or type |
a_util::result::SUCCESS | Everything went fine |
◆ removeTransformation()
Remove the transformation from this assignment.
- Return values
-
a_util::result::SUCCESS | Everything went fine |
◆ setConstant()
Setter for the constant of the assignment.
- Parameters
-
[in] | constant | The constant to assign |
- Return values
-
ERR_INVALID_ARG | Constant is empty |
a_util::result::SUCCESS | Everything went fine |
◆ setReceivedFunction()
Setter for the Received assignment.
- Parameters
-
[in] | source | The name of the source to consider |
- Return values
-
ERR_INVALID_ARG | Source is empty |
a_util::result::SUCCESS | Everything went fine |
◆ setSimulationTimeFunction()
Setter for the SimulationTime assignment.
- Return values
-
a_util::result::SUCCESS | Everything went fine |
◆ setTransformation()
Associates the transformation to this assignment.
- Parameters
-
[in] | transformation_name | The name of the transformation to add |
- Return values
-
ERR_INVALID_ARG | Source or from is empty (no signal connected) |
a_util::result::SUCCESS | Everything went fine |
◆ setTriggerCounterFunction()
Setter for the TriggerCounter assignment.
- Parameters
-
[in] | modulo | The modulo for the function it represents the maximal value that can be assigned before going back to 0 if left empty, the limit will be the maximal value of Float64 |
- Return values
-
a_util::result::SUCCESS | Everything went fine |
◆ writeToDOM()
Export assignment to a XML dom element.
- Parameters
-
[in] | dom_element | The dom element from which to import |
- Return values
-
a_util::result::SUCCESS | Everything went fine |