29template<
typename TriggerFunctionImpl, tTimeStamp DEFAULT_PERIOD >
34 typedef triggered_filter < TriggerFunctionImpl > base_type;
42 ADTF3_DEPRECATED(
"Class 'time_triggered_filter' is deprecated, as well as macro 'ADTF_TIME_TRIGGERED_FILTER'."
43 "Use class 'filter_with_trigger_function' or macros 'ADTF_TRIGGER_FUNCTION_FILTER' / 'ADTF_TRIGGER_FUNCTION_FILTER_PLUGIN' instead.")
54 tResult CreateDefaultTrigger(
const char* strFunctionName)
override
57 tTimeStamp tmCurrentPeriod = DEFAULT_PERIOD;
68template<
typename FilterClass>
69tResult timer_trigger(FilterClass& oFilter, tTimeStamp tmDefaultInterval)
71 return oFilter.ConfigureTimerTrigger(oFilter.GetTriggerFunctionName(),
82 return std::bind(detail::timer_trigger<cFilterWithTriggerFunction>, std::placeholders::_1, tmDefaultInterval);
92 return std::bind(detail::timer_trigger<cFilterWithTriggerFunction>, std::placeholders::_1, tmDefaultInterval);
98using hollow::timer_trigger;
112#define ADTF_TIME_TRIGGERED_FILTER_NAME(_class_identifier_,\
114 _timetriggerfilterclass_,\
116 _time_period_micro_sec_,\
118 ADTF_TRIGGER_FUNCTION_FILTER(_class_identifier_,\
120 _timetriggerfilterclass_,\
122 adtf::filter::timer_trigger(_time_period_micro_sec_),\
136#define ADTF_TIME_TRIGGERED_FILTER(_class_identifier_,\
137 _timetriggerfilterclass_,\
139 _time_period_micro_sec_) \
140 ADTF_TIME_TRIGGERED_FILTER_NAME(_class_identifier_,\
142 _timetriggerfilterclass_,\
144 _time_period_micro_sec_)
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
Definition result.h:29
tResult ConfigureTimerTrigger(const char *strRunnerName, tTimeStamp tmPeriod)
Definition time_triggered_filter.h:31
~time_triggered_filter()
DTOR.
Definition time_triggered_filter.h:49
ADTF3_DEPRECATED("Class 'time_triggered_filter' is deprecated, as well as macro 'ADTF_TIME_TRIGGERED_FILTER'." "Use class 'filter_with_trigger_function' or macros 'ADTF_TRIGGER_FUNCTION_FILTER' / 'ADTF_TRIGGER_FUNCTION_FILTER_PLUGIN' instead.") time_triggered_filter()
Definition time_triggered_filter.h:42
Definition triggered_filter.h:90
Definition triggered_filter.h:270
Namespace for the ADTF Base SDK.
Definition adtf_base_type_traits.h:13
Namespace for all functionality of the ADTF Filter SDK provided since v3.0.
Definition filter.h:26
Namespace for all functionality of the ADTF Filter SDK provided since v3.3.
Definition data_triggered_filter.h:86
Namespace for all functionality of the ADTF Filter SDK provided since v3.7.
Definition data_triggered_filter.h:96
Namespace for the ADTF Filter SDK.
Definition configurable_runner.h:18
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14