29 template<
typename TriggerFunctionImpl,
typename InPinListOfTriggers>
39 ADTF3_DEPRECATED(
"Class 'data_triggered_filter' is deprecated, as well as macro 'ADTF_DATA_TRIGGERED_FILTER'."
40 "Use class filter_with_trigger_function or macros 'ADTF_TRIGGER_FUNCTION_FILTER' / 'ADTF_TRIGGER_FUNCTION_FILTER_PLUGIN' instead.")
50 tResult CreateDefaultTrigger(
const char* strFunctionName)
override
52 adtf_util::cStringList strPinList = adtf_util::cStringList(InPinListOfTriggers::GetPinTriggerList());
53 for (adtf_util::cStringList::iterator it = strPinList.begin();
54 it != strPinList.end();
69 template<
typename FilterClass>
70 tResult pin_trigger(FilterClass& oFilter,
const std::vector<util::cString>& oTriggerPins)
75 RETURN_IF_FAILED(oFilter.ConfigureDataInTrigger(oFilter.GetTriggerFunctionName(), strTriggerPin));
85 inline std::function<
tResult(cFilterWithTriggerFunction&)> pin_trigger(std::vector<util::cString> oTriggerPins)
87 return std::bind(detail::pin_trigger<cFilterWithTriggerFunction>, std::placeholders::_1, oTriggerPins);
95 inline std::function<
tResult(cFilterWithTriggerFunction&)> pin_trigger(std::vector<util::cString> oTriggerPins)
97 return std::bind(detail::pin_trigger<cFilterWithTriggerFunction>, std::placeholders::_1, oTriggerPins);
102 using ant::data_triggered_filter;
103 using hollow::pin_trigger;
115 #define ADTF_DATA_TRIGGERED_PIN_LIST(_triggerlistclass_, _listcommaseparated_) \
116 struct _triggerlistclass_ \
118 static adtf_util::cStringList GetPinTriggerList() \
120 return adtf_util::cStringList(_listcommaseparated_); \
138 #define ADTF_DATA_TRIGGERED_FILTER_NAME(_class_identifier_, \
140 _datatriggerfilterclass_, \
142 _triggerlistclass_, \
144 class _datatriggerfilterclass_ : public adtf::filter::data_triggered_filter<_triggerfunction_, _triggerlistclass_> \
147 ADTF_CLASS_ID_NAME(_datatriggerfilterclass_, _class_identifier_, _class_name_); \
150 _datatriggerfilterclass_() = default; \
151 virtual ~_datatriggerfilterclass_() = default; \
167 #define ADTF_DATA_TRIGGERED_FILTER(_class_identifier_, \
168 _datatriggerfilterclass_, \
171 ADTF_DATA_TRIGGERED_FILTER_NAME(_class_identifier_, \
172 _class_identifier_, \
173 _datatriggerfilterclass_, \
Copyright © Audi Electronics Venture GmbH.
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
A common result class usable as return value throughout.
tResult ConfigureDataInTrigger(const char *strRunnerName, const char *strPinName)
Creates an internal trigger pipe for the given pin.
triggered_filter< TriggerFunctionImpl > base_type
base type definition
~data_triggered_filter()
DTOR.
ADTF3_DEPRECATED("Class 'data_triggered_filter' is deprecated, as well as macro 'ADTF_DATA_TRIGGERED_FILTER'." "Use class filter_with_trigger_function or macros 'ADTF_TRIGGER_FUNCTION_FILTER' / 'ADTF_TRIGGER_FUNCTION_FILTER_PLUGIN' instead.") data_triggered_filter()
CTOR.
Simple Filter for Registering One Triggerfunction to a filter.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.