12 #include <adtf_utils.h>
13 #include <adtf_ucom3.h>
14 #include <adtf_streaming3.h>
63 virtual tResult
GetDatabase(adtf::ucom::ant::iobject_ptr<const ISomeIpDatabase>& pDataBase)
const = 0;
76 virtual tResult
GetPayloadDescription(
const uint32_t nMessageId, adtf::base::IString&& strMDDefinitions, adtf::base::IString&& strMDStruct)
const = 0;
87 virtual tResult
ProcessInputSample(
const adtf::ucom::iobject_ptr<const adtf::streaming::ISample>& pSample) = 0;
99 virtual tResult
FetchOutputSample(adtf::ucom::iobject_ptr<adtf::streaming::ISample>& pSample) = 0;
124 using tOutputCallback = adtf::ucom::ifunction_ptr<void(
const adtf::ucom::iobject_ptr<const adtf::streaming::ISample>& pSample)>;
133 using tErrorCallback = adtf::ucom::ifunction_ptr<void(
const tResult& oResult,
const adtf::ucom::iobject_ptr<const adtf::streaming::ISample>& pSample)>;
The ISomeIpCoder interface provides convenient access to the contents of a SOME/IP sample.
virtual tResult FetchOutputSample(adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample)=0
Consume an output sample from the decoder.
virtual tResult EnableDecoding(uint32_t nMessageId, bool bEnable=true)=0
Enable or disable decoding for a given message type.
virtual tResult GetPayloadDescription(const uint32_t nMessageId, adtf::base::IString &&strMDDefinitions, adtf::base::IString &&strMDStruct) const =0
Gets a DDL description for the payload.
virtual tResult ProcessInputSample(const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample)=0
Feed an input sample to the decoder.
virtual tResult GetDatabase(adtf::ucom::ant::iobject_ptr< const ISomeIpDatabase > &pDataBase) const =0
Returns a reference to the SOME/IP database instance used by the coder.
ADTF_IID(ISomeIpDecoder, "someip_decoder.hood.someip.sdk.devicetb.adtf.iid")
Interface ID for the SOME/IP coder interface.
The ISomeIpCoder interface provides convenient access to the contents of a SOME/IP sample.
virtual tResult GarbageCollection(adtf::base::flash::tNanoSeconds tmTreshold)=0
Invalidate the SOME/IP TP reassembly cache.
virtual tResult SetErrorHandler(const tErrorCallback &fnErrorCallback)=0
Set a callback for non-critical decoding errors.
virtual tResult TimeReset()=0
Invalidate the SOME/IP TP reassembly cache.
ADTF_IID(ISomeIpDecoder, "someip_decoder.key.someip.sdk.devicetb.adtf.iid")
Interface ID for the SOME/IP coder interface.
virtual tResult SetOutputHandler(const tOutputCallback &fnOutputCallback)=0
Set a callbackfor output sample.
key::ISomeIpDecoder ISomeIpDecoder
The ISomeIpCoder interface provides convenient access to the contents of a SOME/IP sample.
Copyright 2024 CARIAD SE.