|
ADTF
|
#include <map_target.h>
Public Member Functions | |
| MapTarget (MapConfiguration *config) | |
| MapTarget (MapConfiguration *config, std::string name, std::string type) | |
| ~MapTarget () | |
| MapTarget (const MapTarget &other) | |
| MapTarget & | operator= (const MapTarget &other) |
| const std::string & | getName () const |
| a_util::result::Result | setName (const std::string &name) |
| const std::string & | getType () const |
| a_util::result::Result | setType (const std::string &type) |
| bool | isValid () const |
| a_util::result::Result | addAssignment (const MapAssignment &assignment) |
| a_util::result::Result | removeAssignment (const std::string &element_name) |
| const MapAssignmentList & | getAssignmentList () const |
| a_util::result::Result | addTrigger (MapTriggerBase *trigger) |
| a_util::result::Result | removeTrigger (MapTriggerBase *trigger) |
| const MapTriggerList & | getTriggerList () const |
| const MapSourceNameList & | getReferencedSources () const |
MapTarget represents a mapped target from the mapping configuration
| ddl::mapping::MapTarget::MapTarget | ( | MapConfiguration * | config | ) |
CTOR
| ddl::mapping::MapTarget::MapTarget | ( | MapConfiguration * | config, |
| std::string | name, | ||
| std::string | type ) |
CTOR
| [in] | config | config this target belong to |
| [in] | name | The signal name |
| [in] | type | The signal type |
| ddl::mapping::MapTarget::~MapTarget | ( | ) |
DTOR
| ddl::mapping::MapTarget::MapTarget | ( | const MapTarget & | other | ) |
CCTOR
| a_util::result::Result ddl::mapping::MapTarget::addAssignment | ( | const MapAssignment & | assignment | ) |
Add an assignment
| [in] | assignment | The assignment to add |
| ERR_INVALID_STATE | No description found |
| ERR_INVALID_ARG | Inconsistency with current configuration |
| ERR_INVALID_TYPE | Inconsistency with ddl |
| ERR_NOT_SUPPORTED | Assignment overlap with existing assignments |
| a_util::result::SUCCESS | Everything went fine |
| a_util::result::Result ddl::mapping::MapTarget::addTrigger | ( | MapTriggerBase * | trigger | ) |
Add a trigger
| [in] | trigger | The trigger to add |
| ERR_INVALID_STATE | No description found |
| ERR_NOT_FOUND | Target not found |
| ERR_INVALID_ARG | Inconsistency with current configuration |
| ERR_INVALID_TYPE | Inconsistency with ddl |
| a_util::result::SUCCESS | Everything went fine |
| const MapAssignmentList & ddl::mapping::MapTarget::getAssignmentList | ( | ) | const |
Returns all assignments configured for this target
| const std::string & ddl::mapping::MapTarget::getName | ( | ) | const |
Returns the name of the mapped target
| const MapSourceNameList & ddl::mapping::MapTarget::getReferencedSources | ( | ) | const |
Returns all referenced sources for this target.
| const MapTriggerList & ddl::mapping::MapTarget::getTriggerList | ( | ) | const |
Returns all triggers configured for this target
| const std::string & ddl::mapping::MapTarget::getType | ( | ) | const |
Returns the DataDefinition typename of the mapped target
| bool ddl::mapping::MapTarget::isValid | ( | ) | const |
Returns the validity for the current description
| a_util::result::Result ddl::mapping::MapTarget::removeAssignment | ( | const std::string & | element_name | ) |
Remove an assignment
| [in] | element_name | The name of the assigned element |
| ERR_NOT_FOUND | Assignement not found |
| a_util::result::SUCCESS | Everything went fine |
| a_util::result::Result ddl::mapping::MapTarget::removeTrigger | ( | MapTriggerBase * | trigger | ) |
Remove a trigger
| [in] | trigger | The trigger to remove |
| ERR_NOT_FOUND | Trigger not found |
| a_util::result::SUCCESS | Everything went fine |
| a_util::result::Result ddl::mapping::MapTarget::setName | ( | const std::string & | name | ) |
Set name
| [in] | name | The new name of the target |
| ERR_INVALID_STATE | No description found |
| ERR_INVALID_ARG | Signal name already used in configuration |
| a_util::result::SUCCESS | Everything went fine |
| a_util::result::Result ddl::mapping::MapTarget::setType | ( | const std::string & | type | ) |
Set type
| [in] | type | The type of the target |
| ERR_INVALID_STATE | No description found |
| ERR_INVALID_ARG | Signal name already used in configuration |
| ERR_INVALID_TYPE | Inconsistency with ddl |
| a_util::result::SUCCESS | Everything went fine |