ADTF
Loading...
Searching...
No Matches
create_default_triggers.h
Go to the documentation of this file.
1
7#pragma once
11
12namespace adtf
13{
14namespace filter
15{
16namespace testing
17{
18namespace ant
19{
27 {
28 tResult nResult = ERR_NOERROR;
30 lstActiveRunners.GetObjects(vecRunners);
31 for (auto& it : vecRunners)
32 {
33 tResult nLocalRet = it->Deactivate();
34 if (IS_FAILED(nLocalRet))
35 {
37 nResult = nLocalRet;
38 }
39 }
40 return nResult;
41 }
42
49 {
50 tResult nResult = ERR_NOERROR;
52 lstActiveRunners.GetObjects(vecRunners);
53 for (auto& it : vecRunners)
54 {
55 nResult = it->Activate();
56 }
57 if (IS_FAILED(nResult))
58 {
59 deactivate_runners(lstActiveRunners);
60 }
61 return nResult;
62 }
63
77 const tChar* strThreadRunnerCID = "", const tChar* strTimerRunnerCID = "");
90 tResult create_default_runners(streaming::cFilterGraph& oGraph, const char* strNameOfFilter,
91 const tChar* strThreadRunnerCID = "", const tChar* strTimerRunnerCID = "");
92
93
94} //namespace ant
98} //testing
99} //namespace filter
100} //namespace adtf
#define IS_FAILED(s)
Check if result is failed.
Definition result.h:20
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition filtergraph.h:30
virtual tResult GetObjects(my_type &oObjectsEnum) const =0
tResult create_default_runners(const ucom::iobject_ptr< streaming::IFilter > &pFilter, ucom::iobject_list< streaming::IActiveRunner > &lstActiveRunners, const tChar *strThreadRunnerCID="", const tChar *strTimerRunnerCID="")
tResult deactivate_runners(ucom::iobject_list< streaming::IActiveRunner > &lstActiveRunners)
Definition create_default_triggers.h:26
tResult activate_runners(ucom::iobject_list< streaming::IActiveRunner > &lstActiveRunners)
Definition create_default_triggers.h:48
Namespace for all testing functionality of the ADTF Filter SDK.
Definition create_default_triggers.h:17
Namespace for the ADTF Filter SDK.
Definition configurable_runner.h:18
iobject_enum< T > iobject_list
Definition object_list.h:387
object_enum< T, INTERFACE_TYPE, std::vector > object_vector
Definition object_list.h:410
ant::iobject_ptr< T > iobject_ptr
Alias always bringing the latest version of ant::iobject_ptr into scope.
Definition object_ptr_intf.h:437
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14