ADTF  3.18.3
create_default_triggers.h File Reference

Copyright © Audi Electronics Venture GmbH. More...

Go to the source code of this file.

Namespaces

 adtf
 Namespace for entire ADTF SDK.
 
 adtf::filter
 Namespace for the ADTF Filter SDK.
 
 adtf::filter::testing
 Namespace for all testing functionality of the ADTF Filter SDK.
 

Functions

tResult deactivate_runners (ucom::iobject_list< streaming::IActiveRunner > &lstActiveRunners)
 Deactivates a list of active runners for testing. More...
 
tResult activate_runners (ucom::iobject_list< streaming::IActiveRunner > &lstActiveRunners)
 Activates a list of active runners for testing. More...
 
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. More...
 
tResult create_default_runners (streaming::ant::cFilterGraph &oGraph, const char *strNameOfFilter, const tChar *strThreadRunnerCID="", const tChar *strTimerRunnerCID="")
 This testing function creates the default active runner objects to test a filter of the given oGraph. More...
 

Detailed Description

Copyright © Audi Electronics Venture GmbH.

All rights reserved

Definition in file create_default_triggers.h.

Function Documentation

◆ activate_runners()

tResult adtf::filter::testing::ant::activate_runners ( ucom::iobject_list< streaming::IActiveRunner > &  lstActiveRunners)
inline

Activates a list of active runners for testing.

Parameters
lstActiveRunners[in] List of Runners
Returns
Depends on the return values of the IActiveRunner::Activate

Definition at line 48 of file create_default_triggers.h.

References adtf::filter::testing::ant::activate_runners(), adtf::filter::testing::ant::deactivate_runners(), and IS_FAILED.

Referenced by adtf::filter::testing::ant::activate_runners().

◆ create_default_runners() [1/2]

tResult adtf::filter::testing::ant::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.

Parameters
pFilter[in] Filter instance.
lstActiveRunners[in] Runners created. Remark: Keep this list valid until your ready. Otherwise the reference counting will destroy your Runner objects.
See also
activate_runners
deactivate_runners
Parameters
strThreadRunnerCID[in] Class ID of the Thread Runner to create. If empty the Thread Runner will be used.
strTimerRunnerCID[in] Class ID of the Timer Runner to create. If empty the Timer Runner will be used.
Remarks
It will only work if the given filter reference uses the adtf::filter::ant::cFilter implementation!

References adtf::filter::testing::ant::create_default_runners().

Referenced by adtf::filter::testing::ant::create_default_runners().

◆ create_default_runners() [2/2]

tResult adtf::filter::testing::ant::create_default_runners ( streaming::ant::cFilterGraph oGraph,
const char *  strNameOfFilter,
const tChar strThreadRunnerCID = "",
const tChar strTimerRunnerCID = "" 
)

This testing function creates the default active runner objects to test a filter of the given oGraph.

This implementation will not consider the subgraphs!

Parameters
oGraph[in] Graph where to get the filter with the name strNameOfFilter from and add the Runners to.
strNameOfFilter[in] Name of the filter
strThreadRunnerCID[in] Class ID of the Thread Runner to create. If empty the Thread Runner will be used.
strTimerRunnerCID[in] Class ID of the Timer Runner to create. If empty the Timer Runner will be used.
Remarks
It will only work if the given filter references uses the adtf::filter::ant::cFilter implementation!

References adtf::filter::testing::ant::create_default_runners().

◆ deactivate_runners()

tResult adtf::filter::testing::ant::deactivate_runners ( ucom::iobject_list< streaming::IActiveRunner > &  lstActiveRunners)
inline

Deactivates a list of active runners for testing.

Parameters
lstActiveRunners[in] List of Runners
Returns
Depends on the return values of the IActiveRunner::Deactivate

Definition at line 26 of file create_default_triggers.h.

References adtf::filter::testing::ant::deactivate_runners(), and IS_FAILED.

Referenced by adtf::filter::testing::ant::activate_runners(), and adtf::filter::testing::ant::deactivate_runners().