ADTF  3.18.4
create_default_triggers.h
Go to the documentation of this file.
1 
7 #pragma once
11 
12 namespace adtf
13 {
14 namespace filter
15 {
16 namespace testing
17 {
18 namespace ant
19 {
26  inline tResult deactivate_runners(ucom::iobject_list<streaming::IActiveRunner>& lstActiveRunners)
27  {
28  tResult nResult = ERR_NOERROR;
29  adtf::ucom::object_vector<adtf::streaming::IActiveRunner> vecRunners;
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  }
48  inline tResult activate_runners(ucom::iobject_list<streaming::IActiveRunner>& lstActiveRunners)
49  {
50  tResult nResult = ERR_NOERROR;
51  adtf::ucom::object_vector<adtf::streaming::IActiveRunner> vecRunners;
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  }
76  ucom::iobject_list<streaming::IActiveRunner>& lstActiveRunners,
77  const tChar* strThreadRunnerCID = "", const tChar* strTimerRunnerCID = "");
90  tResult create_default_runners(streaming::ant::cFilterGraph& oGraph, const char* strNameOfFilter,
91  const tChar* strThreadRunnerCID = "", const tChar* strTimerRunnerCID = "");
92 
93 
94 } //namespace ant
95 using ant::create_default_runners;
96 using ant::deactivate_runners;
97 using ant::activate_runners;
98 } //testing
99 } //namespace filter
100 } //namespace adtf
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
Default implementation for the IFilterGraph interface.
Definition: filtergraph.h:31
Base object pointer to realize binary compatible reference counting in interface methods.
tResult create_default_runners(const ucom::iobject_ptr< streaming::IFilter > &pFilter, ucom::iobject_list< streaming::IActiveRunner > &lstActiveRunners, const tChar *strThreadRunnerCID="", const tChar *strTimerRunnerCID="")
This testing function creates the default active runner objects to test a filter.
tResult deactivate_runners(ucom::iobject_list< streaming::IActiveRunner > &lstActiveRunners)
Deactivates a list of active runners for testing.
tResult activate_runners(ucom::iobject_list< streaming::IActiveRunner > &lstActiveRunners)
Activates a list of active runners for testing.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.