ADTF
Loading...
Searching...
No Matches
adtf::streaming::testing::penguin::cDisconnector Class Reference

#include <connect_pins.h>

Public Member Functions

 cDisconnector (const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pObject, const char *strPinName)
 
 cDisconnector (const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IPin > &pPin)
 
 cDisconnector (const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IInPin > &pPin)
 
 cDisconnector (const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IOutPin > &pPin)
 
 cDisconnector (cDisconnector &&)=default
 
cDisconnectoroperator= (cDisconnector &&)=default
 
 ~cDisconnector ()
 

Detailed Description

Utility class that can be used to disconnect a pin via RAII. This is useful in tests to ensure there are no dangling references to samples streams.

Constructor & Destructor Documentation

◆ cDisconnector() [1/4]

adtf::streaming::testing::penguin::cDisconnector::cDisconnector ( const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > & pObject,
const char * strPinName )

This will retrieve the pin from the given object.

Parameters
[in]pObjectThe object that has the pin.
strPinNameThe name of the pin.

◆ cDisconnector() [2/4]

adtf::streaming::testing::penguin::cDisconnector::cDisconnector ( const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IPin > & pPin)

Overload for construction with a pin instance.

Parameters
[in]pPinThe pin instance.

◆ cDisconnector() [3/4]

adtf::streaming::testing::penguin::cDisconnector::cDisconnector ( const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IInPin > & pPin)

Overload for construction with a pin instance.

Parameters
[in]pPinThe pin instance.

◆ cDisconnector() [4/4]

adtf::streaming::testing::penguin::cDisconnector::cDisconnector ( const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IOutPin > & pPin)

Overload for construction with a pin instance.

Parameters
[in]pPinThe pin instance.

◆ ~cDisconnector()

adtf::streaming::testing::penguin::cDisconnector::~cDisconnector ( )

This will disconnect the pin.


The documentation for this class was generated from the following file: