ADTF
3.18.2
|
implementation of a data trigger in the configuration api More...
Public Member Functions | |
MapDataTrigger (MapConfiguration *config) | |
CTOR. More... | |
virtual std::string | getSourceDependency () const |
Overrides MapTriggerBase. More... | |
const std::string & | getVariable () const |
Returns the variable to compare. More... | |
const std::string & | getSource () const |
Returns the source signal. | |
const std::string & | getOperator () const |
Returns the operator for the comparison. | |
double | getValue () const |
Returns the value to compare to. | |
a_util::result::Result | setComparison (const std::string &source_element_path, const std::string &comp_operator, const std::string &value) |
Set the comparison. More... | |
bool | isEqual (const MapTriggerBase &other) const |
Polymorphic comparison method (impl. More... | |
Public Member Functions inherited from MapTriggerBase | |
MapTriggerBase (MapConfiguration *config) | |
CTOR. | |
virtual | ~MapTriggerBase () |
DTOR. | |
bool | isValid () const |
Returns the validity for the current description. | |
bool | checkValidity () |
Check Trigger validity and set validity flag. More... | |
a_util::result::Result | checkTriggerReferences () const |
Checks the configuration for consistency of a new trigger. More... | |
Protected Member Functions | |
MapTriggerBase * | clone () const |
Polymorphic clone method. | |
Private Member Functions | |
a_util::result::Result | loadFromDom (const a_util::xml::DOMElement &trigger_element) |
creates a trigger instance from a trigger-dom element More... | |
a_util::result::Result | writeToDOM (a_util::xml::DOMElement &dom_element) const |
Export trigger to a XML dom element. More... | |
a_util::result::Result | setComparisonNoTypeCheck (const std::string &source_element_path, const std::string &comp_operator, const std::string &value) |
Set the comparison. More... | |
a_util::result::Result | setSourceNoTypeCheck (const std::string &source) |
Set the source. More... | |
implementation of a data trigger in the configuration api
Definition at line 240 of file map_trigger.h.
MapDataTrigger | ( | MapConfiguration * | config | ) |
CTOR.
[in] | config | The configuration |
|
virtual |
const std::string& getVariable | ( | ) | const |
Returns the variable to compare.
|
virtual |
Polymorphic comparison method (impl.
from MapTriggerBase)
[in] | other | The other instance |
Implements MapTriggerBase.
|
private |
creates a trigger instance from a trigger-dom element
[in] | trigger_element | The dom element from which to import |
ERR_INVALID_ARG | Missing attribute |
a_util::result::SUCCESS | Everything went fine |
a_util::result::Result 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 |
|
private |
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 |
a_util::result::SUCCESS | Everything went fine |
|
private |
Set the source.
[in] | source | The source signal |
a_util::result::SUCCESS | Everything went fine |
|
private |
Export trigger to a XML dom element.
[in] | dom_element | The dom element from which to import |
a_util::result::SUCCESS | Everything went fine |