ADTF  3.18.2
cLegacyPinEvents

Common base class for all legacy filter classes that emulates the old IPinEventHandler interface. More...

Inheritance diagram for cLegacyPinEvents:
[legend]

Protected Member Functions

virtual tResult OnSampleReceived (cLegacyInputPin *, const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &)
 This is called whenever a sample is received via one of the input Pins. More...
 
virtual tResult OnTypeChanged (cLegacyInputPin *pPin, const adtf::ucom::iobject_ptr< const adtf::streaming::IStreamType > &pType)
 This is called whenever a type has been changed/received on one of the input Pins. More...
 

Detailed Description

Common base class for all legacy filter classes that emulates the old IPinEventHandler interface.

You have to split your OnPinEvent Method into the two methods of this class.

Definition at line 245 of file legacy_filter.h.

Member Function Documentation

◆ OnSampleReceived()

virtual tResult OnSampleReceived ( cLegacyInputPin ,
const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &   
)
inlineprotectedvirtual

This is called whenever a sample is received via one of the input Pins.

Parameters
[in]pPinThe Pin that the sample was received on.
[in]pSampleThe Sample that has been received
Returns
Standard result.

Definition at line 254 of file legacy_filter.h.

References RETURN_NOERROR.

Referenced by cLegacyFilter::Process(), and cLegacyStreamingSink::Trigger().

◆ OnTypeChanged()

virtual tResult OnTypeChanged ( cLegacyInputPin pPin,
const adtf::ucom::iobject_ptr< const adtf::streaming::IStreamType > &  pType 
)
inlineprotectedvirtual

This is called whenever a type has been changed/received on one of the input Pins.

Parameters
[in]pPinThe Pin that the sample was received on.
[in]pTypeThe new type.
Returns
Standard result. Return an error to indicate that the type is not accepted by your filter.

Definition at line 267 of file legacy_filter.h.

References object_ptr< T >::Get(), iobject_ptr_base< T >::Get(), and RETURN_IF_FAILED.