|
Dev Essential
|
implementation of a data trigger in the configuration api More...
#include <map_trigger.h>
Inherits ddl::mapping::MapTriggerBase.
Public Member Functions | |
| MapDataTrigger (MapConfiguration *config) | |
| virtual std::string | getSourceDependency () const |
| const std::string & | getVariable () const |
| const std::string & | getSource () const |
| const std::string & | getOperator () const |
| double | getValue () const |
| a_util::result::Result | setComparison (const std::string &source_element_path, const std::string &comp_operator, const std::string &value) |
| bool | isEqual (const MapTriggerBase &other) const |
Public Member Functions inherited from ddl::mapping::MapTriggerBase | |
| MapTriggerBase (MapConfiguration *config) | |
| virtual | ~MapTriggerBase () |
| bool | isValid () const |
| bool | checkValidity () |
| a_util::result::Result | checkTriggerReferences () const |
Protected Member Functions | |
| MapTriggerBase * | clone () const |
implementation of a data trigger in the configuration api
| ddl::mapping::MapDataTrigger::MapDataTrigger | ( | MapConfiguration * | config | ) |
CTOR
| [in] | config | The configuration |
|
protectedvirtual |
Polymorphic clone method
Implements ddl::mapping::MapTriggerBase.
| const std::string & ddl::mapping::MapDataTrigger::getOperator | ( | ) | const |
Returns the operator for the comparison
| const std::string & ddl::mapping::MapDataTrigger::getSource | ( | ) | const |
Returns the source signal
|
virtual |
Overrides MapTriggerBase
Reimplemented from ddl::mapping::MapTriggerBase.
| double ddl::mapping::MapDataTrigger::getValue | ( | ) | const |
Returns the value to compare to
| const std::string & ddl::mapping::MapDataTrigger::getVariable | ( | ) | const |
Returns the variable to compare
|
virtual |
Polymorphic comparison method (impl. from MapTriggerBase)
| [in] | other | The other instance |
Implements ddl::mapping::MapTriggerBase.
| a_util::result::Result ddl::mapping::MapDataTrigger::setComparison | ( | const std::string & | source_element_path, |
| const std::string & | comp_operator, | ||
| const std::string & | value ) |
Set the comparison
| [in] | source_element_path | The path to the element ([SourceSignal].[Element]) |
| [in] | comp_operator | The operator for the comparison |
| [in] | value | The value to compare to |
| ERR_INVALID_ARG | Missing attribute |
| ERR_INVALID_TYPE | Definition is inconsistent with ddl |
| a_util::result::SUCCESS | Everything went fine |