7 #ifndef _ADTF_ADTF2_LEGACY_STREAMING_SINK_HEADER_
8 #define _ADTF_ADTF2_LEGACY_STREAMING_SINK_HEADER_
52 return Init(cLegacyStateHandler::StageNormal);
62 return Shutdown(cLegacyStateHandler::StageFirst);
71 return Init(cLegacyStateHandler::StageGraphReady);
80 return Shutdown(cLegacyStateHandler::StageGraphReady);
153 auto pInPin = adtf::ucom::make_object_ptr<adtf::streaming::ant::cInPin>(strNameOfReaderAndPin);
154 oInput.ResetPin(pInPin);
159 m_oLegacyPins.push_back(&oInput);
173 bSamplesFound =
false;
174 for (
auto& pReader: m_oLegacyPins)
177 if (
IS_OK(pReader->GetNextSample(pSample)))
181 bSamplesFound =
true;
185 while (bSamplesFound);
209 std::vector<cLegacyInputPin*> m_oLegacyPins;
tInt64 tTimeStamp
type definition for a time value.
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
#define IS_OK(s)
Check if result is OK.
A common result class usable as return value throughout.
Common base class for all legacy filter classes that emulates the old configuration interface.
Common base class for all legacy filter classes.
Common base class for all legacy filter classes that emulates the old IPinEventHandler interface.
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.
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.
Common base class for all legacy filter classes that emulates the old state maschine of cFilter.
tInitStage
Old init stages.
Class that helps with porting old ADTF 2 Filters to ADTF 3.
tResult Shutdown(tInitStage) override
Emulates the old Shutdown method.
tResult Init(tInitStage) override
Emulates the old Init method.
tResult Trigger(tTimeStamp)
Used internally to recreate the trogger scheme from ADTF2.
virtual tResult StopStreaming()
Used internally.
virtual tResult Construct()
Used internally.
tResult RegisterPin(cLegacyInputPin &oInput)
Compatibility method to register Pins.
virtual tResult StartStreaming()
Used internally.
virtual tResult Shutdown()
Used internally.
tResult Stop() override
Emulates the old Stop method.
tResult Start() override
Emulates the old Start method.
virtual tResult Init()
Used internally.
cLegacyStreamingSink()
Constructor.
virtual tResult Destruct()
Used internally.
Default implementation class template for a ITriggerPipeItem.
void SetRunnable(adtf::base::ant::IRunnable &oRunnable)
Sets the Runnable implementation to call if Run is called.
Basic implementation for a Streaming Sink.
Base object pointer to realize binary compatible reference counting in interface methods.
Object pointer implementation used for reference counting on objects of type IObject.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
std::enable_if< !std::is_base_of< enable_object_ptr_from_this< typename std::remove_cv< Implementation >::type >, typename std::remove_cv< Implementation >::type >::value, object_ptr< Implementation > >::type make_object_ptr(Args &&... args)
Create an instance of type object_ptr with Implementation as the shared resource.
Namespace for entire ADTF SDK.
#define ADTF_RUN_FUNCTION(_fcName_)
Helper Macro to define Run function for adtf::base::ant::runnable<>
#define adtf_string_intf(__string__)
The adtf_string_intf Macro helps to easily create a rvalue reference of a adtf::util::cString.