14 #ifndef HEADER_MAP_ASSIGNMENT_H
15 #define HEADER_MAP_ASSIGNMENT_H
166 std::string _constant;
167 std::string _function;
171 std::string _transform;
A common result class usable as return value throughout.
Representation for an element in the DOM.
const std::string & getTransformation() const
Returns the associated transformation of this assignment (or an empty string)
a_util::result::Result setConstant(const std::string &constant)
Setter for the constant of the assignment.
const std::string & getFunction() const
Returns the constant of the assignment (or an empty string)
const std::string & getFrom() const
Returns the source element name of the assignment (or an empty string)
a_util::result::Result removeTransformation()
Remove the transformation from this assignment.
bool isValid() const
Returns the validity for the current description.
MapAssignment(std::string to)
CTOR.
const std::string & getTo() const
Returns the name of the target element that is assigned.
a_util::result::Result setTransformation(const std::string &transformation_name)
Associates the transformation to this assignment.
const std::string & getConstant() const
Returns the constant of the assignment (or an empty string)
const std::string & getModulo() const
Returns the constant of the assignment (or an empty string)
const std::string & getSource() const
Returns the source name of the assignment (or an empty string)
a_util::result::Result setTriggerCounterFunction(const std::string &modulo)
Setter for the TriggerCounter assignment.
a_util::result::Result connect(const std::string &source_element_path)
Connects the target element or signal with a source.
a_util::result::Result loadFromDOM(const a_util::xml::DOMElement &assignment, MapErrorList &errors)
Initializes the assignment from a assignment-dom element.
a_util::result::Result setReceivedFunction(const std::string &source)
Setter for the Received assignment.
a_util::result::Result setSimulationTimeFunction()
Setter for the SimulationTime assignment.
a_util::result::Result writeToDOM(a_util::xml::DOMElement &dom_element) const
Export assignment to a XML dom element.
MapConfiguration is the central class of the mapping::dd namespace.
MapTarget represents a mapped target from the mapping configuration.
std::vector< std::string > MapErrorList
container type for mapping errors
std::vector< MapAssignment > MapAssignmentList
Public composite types used in the mapping::dd namespace.
bool operator==(const MapAssignment &a, const MapAssignment &b)
compares the Assignments
bool operator!=(const MapAssignment &a, const MapAssignment &b)
compares the Assignments
definition of the ddl namespace
Common include for component a_util::result.
Common include for component a_util::xml.