ADTF
Loading...
Searching...
No Matches
adtf::streaming::testing Namespace Reference

Namespace for all testing functionality provided within the ADTF Streaming SDK. More...

Namespaces

namespace  ant
 Namespace for all testing functionality of the ADTF Streaming SDK provided since v3.0.
 
namespace  flash
 Namespace for all testing functionality of the ADTF Streaming SDK provided since v3.5.
 
namespace  penguin
 Namespace for all testing functionality of the ADTF Streaming SDK provided since v3.15.
 

Classes

class  cDisconnector
 
class  cPinOutputTester
 
class  cSampleWriterTester
 

Typedefs

using cErrorHandlingManager
 

Functions

bool check_if_pipe_exists (const adtf_util::cStringList &lstPipe, adtf::ucom::object_list< adtf::streaming::ITriggerPipe > &lstPipesToCheck)
 
tResult check_inner_pipes (std::initializer_list< adtf_util::cStringList > lstForPipes, adtf::ucom::object_list< adtf::streaming::ITriggerPipe > &lstPipesToCheck)
 
tResult connect_binding_objects (IBindingClient &pClient, IBindingServer &pServer)
 
tResult connect_interface_binding (streaming::ant::IInterfaceBinding &oSource, const char *strServerObjectName, streaming::ant::IInterfaceBinding &oClient, const char *strClientObjectName)
 
tResult connect_pin (const adtf::ucom::ant::iobject_ptr< IOutPin > &pOutPin, adtf::ucom::ant::iobject_ptr< ISampleStream > &pSampleStream, bool bSync)
 
tResult connect_pins (const adtf::ucom::ant::iobject_ptr< IOutPin > &pOutPin, const adtf::ucom::ant::iobject_ptr< IInPin > &pInPin, bool bSync)
 
tResult connect_pins (const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pSource, const char *strOutputPin, const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pDestination, const char *strInputPin, bool bSync=true)
 
tResult discover_trigger_item (const ucom::ant::iobject_ptr< const streaming::ant::ITriggerPipeSource > &pItem, ucom::ant::iobject_enum< const streaming::ant::ITriggerPipeSource > &lstOfItemsInOrderOfCall)
 
tResult print_trigger_items (ucom::ant::iobject_enum< const streaming::ant::ITriggerPipeSource > &lstOfItemsInOrderOfCall)
 
tResult log_trigger_items (ucom::ant::iobject_enum< const streaming::ant::ITriggerPipeSource > &lstOfItemsInOrderOfCall)
 
tResult trigger_runner (streaming::ant::IRuntimeBehaviour &oGraphObject, const char *strRunner, base::flash::tNanoSeconds tmTrigger=base::flash::tNanoSeconds{0})
 
tResult trigger_runner (const ucom::ant::iobject_ptr< ucom::ant::IObject > &pGraphObject, const char *strRunner, base::flash::tNanoSeconds tmTrigger=base::flash::tNanoSeconds{0})
 
std::vector< std::string > discover_trigger_pipe_call_path (const ucom::ant::iobject_ptr< const streaming::ant::ITriggerPipeSource > &pItem)
 Retrieves a vector of trigger pipe item names in order of call.
 
std::vector< std::string > discover_trigger_item_call_path (const ucom::ant::iobject_ptr< const ucom::ant::IObject > &pObject, const char *strPinOrRunnerName)
 Retrieves a vector of trigger pipe item names in order of call for a Pin or Runner of a object.
 

Detailed Description

Namespace for all testing functionality provided within the ADTF Streaming SDK.

Function Documentation

◆ connect_pins()

tResult adtf::streaming::testing::penguin::connect_pins ( const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > & pSource,
const char * strOutputPin,
const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > & pDestination,
const char * strInputPin,
bool bSync = true )

Connect the given output pin with the given input pin.

This will create a sample stream when neccessary.

Parameters
[in]pSourceThe source object.
[in]strOutputPinThe output pin.
[in]pDestinationThe destination object.
[in]strInputPinThe input pin.
[in]bSyncWhether or not to connect the pins with a trigger pipe.
Returns
Standard result.

◆ discover_trigger_item_call_path()

std::vector< std::string > adtf::streaming::testing::penguin::discover_trigger_item_call_path ( const ucom::ant::iobject_ptr< const ucom::ant::IObject > & pObject,
const char * strPinOrRunnerName )

Retrieves a vector of trigger pipe item names in order of call for a Pin or Runner of a object.

Warning
The ancensors may form a tree, this function will only return a single path out of all possible ones.
Parameters
pObjectThe filter or sample stream source
strPinOrRunnerNamethe pin name or runner name
Returns
std::vector<std::string> The trigger item names in order of call
Exceptions
tResultif strPinOrRunnerName was not found

◆ discover_trigger_pipe_call_path()

std::vector< std::string > adtf::streaming::testing::penguin::discover_trigger_pipe_call_path ( const ucom::ant::iobject_ptr< const streaming::ant::ITriggerPipeSource > & pItem)

Retrieves a vector of trigger pipe item names in order of call.

Warning
The ancensors may form a tree, this function will only return a single path out of all possible ones.
Parameters
pItemthe trigger item source to discover
Returns
std::vector<std::string> The trigger item names in order of call

◆ trigger_runner() [1/2]

tResult adtf::streaming::testing::kiwi::trigger_runner ( const ucom::ant::iobject_ptr< ucom::ant::IObject > & pGraphObject,
const char * strRunner,
base::flash::tNanoSeconds tmTrigger = base::flash::tNanoSeconds{0} )

Trigger a runner of an object.

Parameters
[in]pGraphObjectThe object that contains the runner.
[in]strRunnerThe name of the runner.
[in]tmTriggerThe timestamp passed to the runner.
Returns
Standard result.

◆ trigger_runner() [2/2]

tResult adtf::streaming::testing::hollow::trigger_runner ( streaming::ant::IRuntimeBehaviour & oGraphObject,
const char * strRunner,
base::flash::tNanoSeconds tmTrigger = base::flash::tNanoSeconds{0} )

Trigger a runner of an object.

Parameters
[in]oGraphObjectThe object that contains the runner.
[in]strRunnerThe name of the runner.
[in]tmTriggerThe timestamp passed to the runner.
Returns
Standard result.