14 #ifndef HEADER_MAP_TARGET_H
15 #define HEADER_MAP_TARGET_H
26 class MapConfiguration;
219 std::string _type_name;
A common result class usable as return value throughout.
Representation for an element in the DOM.
MapConfiguration is the central class of the mapping::dd namespace.
MapSource represents a mapping source from the configuration file.
MapTarget represents a mapped target from the mapping configuration.
const std::string & getType() const
Returns the DataDefinition typename of the mapped target.
a_util::result::Result addTriggerNoTypeCheck(MapTriggerBase *trigger)
Add a trigger to this target.
a_util::result::Result addAssignment(const MapAssignment &assignment)
Add an assignment.
a_util::result::Result loadFromDOM(const a_util::xml::DOMElement &target)
Initializes the target from a target-dom element.
const MapTriggerList & getTriggerList() const
Returns all triggers configured for this target.
a_util::result::Result checkDoubleAssignments()
Checks if the assignments overlap.
a_util::result::Result setType(const std::string &type)
Set type.
a_util::result::Result removeTrigger(MapTriggerBase *trigger)
Remove a trigger.
MapTarget(const MapTarget &other)
CCTOR.
void swap(MapTarget &other)
swap implementation
bool isValid() const
Returns the validity for the current description.
a_util::result::Result setName(const std::string &name)
Set name.
const std::string & getName() const
Returns the name of the mapped target.
const MapSourceNameList & getReferencedSources() const
Returns all referenced sources for this target.
const MapAssignmentList & getAssignmentList() const
Returns all assignments configured for this target.
MapTarget(MapConfiguration *config)
CTOR.
a_util::result::Result removeAssignmentWithoutClear(const std::string &element_name)
Remove an assignment from this target.
a_util::result::Result modifySourceName(const std::string &name, const std::string &new_name)
Modify a source signal name.
a_util::result::Result addTrigger(MapTriggerBase *trigger)
Add a trigger.
a_util::result::Result removeAssignment(const std::string &element_name)
Remove an assignment.
MapTarget(MapConfiguration *config, std::string name, std::string type)
CTOR.
a_util::result::Result addAssignmentNoTypeCheck(const MapAssignment &assignment)
Add an assignment to this target.
a_util::result::Result writeToDOM(a_util::xml::DOMElement &dom_element) const
Export target to a XML dom element.
MapTarget & operator=(const MapTarget &other)
Assignment operator.
cMapTrigger forms a base class for a trigger contained in the configuration
WRITER_TYPE & trigger(WRITER_TYPE &oWriter)
Global function template to trigger a writers sample stream manually.
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
std::vector< MapTarget > MapTargetList
Public composite types used in the mapping::dd namespace.
std::vector< MapTriggerBase * > MapTriggerList
Public composite types used in the mapping::dd namespace.
std::set< std::string > MapSourceNameList
defintion of MapSource name list
definition of the ddl namespace
Common include for component a_util::result.
Common include for component a_util::xml.