ADTF
3.18.4
|
Utility class that can be used to disconnect a pin via RAII. More...
Public Member Functions | |
cDisconnector (const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > &pObject, const char *strPinName) | |
This will retrieve the pin from the given object. More... | |
cDisconnector (const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IPin > &pPin) | |
Overload for construction with a pin instance. More... | |
cDisconnector (const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IInPin > &pPin) | |
Overload for construction with a pin instance. More... | |
cDisconnector (const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IOutPin > &pPin) | |
Overload for construction with a pin instance. More... | |
cDisconnector (cDisconnector &&)=default | |
cDisconnector & | operator= (cDisconnector &&)=default |
~cDisconnector () | |
This will disconnect the pin. | |
Private Attributes | |
adtf::ucom::weak_object_ptr< adtf::streaming::IPin > | m_pPin |
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.
Definition at line 131 of file connect_pins.h.
cDisconnector | ( | const adtf::ucom::ant::iobject_ptr< adtf::ucom::ant::IObject > & | pObject, |
const char * | strPinName | ||
) |
This will retrieve the pin from the given object.
[in] | pObject | The object that has the pin. |
strPinName | The name of the pin. |
cDisconnector | ( | const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IPin > & | pPin | ) |
Overload for construction with a pin instance.
[in] | pPin | The pin instance. |
cDisconnector | ( | const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IInPin > & | pPin | ) |
Overload for construction with a pin instance.
[in] | pPin | The pin instance. |
cDisconnector | ( | const adtf::ucom::ant::iobject_ptr< adtf::streaming::ant::IOutPin > & | pPin | ) |
Overload for construction with a pin instance.
[in] | pPin | The pin instance. |