ADTF Device Toolbox SDK
Loading...
Searching...
No Matches
someip_coder_intf.h
Go to the documentation of this file.
1
7
8#pragma once
9
11#include "someip_types.h"
12#include <adtf_utils.h>
13#include <adtf_ucom3.h>
14#include <adtf_streaming3.h>
15
16
20namespace adtf
21{
22
26namespace devicetb
27{
28
32namespace sdk
33{
34
38namespace someip
39{
40
44namespace hood
45{
46
51 class ISomeIpDecoder : public adtf::ucom::ant::IObject
52 {
53 public:
55 ADTF_IID(ISomeIpDecoder, "someip_decoder.hood.someip.sdk.devicetb.adtf.iid");
56
63 virtual tResult GetDatabase(adtf::ucom::ant::iobject_ptr<const ISomeIpDatabase>& pDataBase) const = 0;
64
76 virtual tResult GetPayloadDescription(const uint32_t nMessageId, adtf::base::IString&& strMDDefinitions, adtf::base::IString&& strMDStruct) const = 0;
77
87 virtual tResult ProcessInputSample(const adtf::ucom::iobject_ptr<const adtf::streaming::ISample>& pSample) = 0;
88
99 virtual tResult FetchOutputSample(adtf::ucom::iobject_ptr<adtf::streaming::ISample>& pSample) = 0;
100
108 virtual tResult EnableDecoding(uint32_t nMessageId, bool bEnable = true) = 0;
109 };
110
111} // namespace hood
112
116namespace key {
119 {
120 public:
122 ADTF_IID(ISomeIpDecoder, "someip_decoder.key.someip.sdk.devicetb.adtf.iid");
123
124 using tOutputCallback = adtf::ucom::ifunction_ptr<void(const adtf::ucom::iobject_ptr<const adtf::streaming::ISample>& pSample)>;
131 virtual tResult SetOutputHandler(const tOutputCallback& fnOutputCallback) = 0;
132
133 using tErrorCallback = adtf::ucom::ifunction_ptr<void(const tResult& oResult, const adtf::ucom::iobject_ptr<const adtf::streaming::ISample>& pSample)>;
142 virtual tResult SetErrorHandler(const tErrorCallback& fnErrorCallback) = 0;
143
150 virtual tResult GarbageCollection(adtf::base::flash::tNanoSeconds tmTreshold) = 0;
151
156 virtual tResult TimeReset() = 0;
157
158 };
159} // namespace key
160
163
164} // namespace someip
165} // namespace sdk
166} // namespace devicetb
167} // namespace adtf
Definition someip_coder_intf.h:52
virtual tResult FetchOutputSample(adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample)=0
virtual tResult GetDatabase(adtf::ucom::ant::iobject_ptr< const ISomeIpDatabase > &pDataBase) const =0
ADTF_IID(ISomeIpDecoder, "someip_decoder.hood.someip.sdk.devicetb.adtf.iid")
Interface ID for the SOME/IP coder interface.
virtual tResult EnableDecoding(uint32_t nMessageId, bool bEnable=true)=0
virtual tResult GetPayloadDescription(const uint32_t nMessageId, adtf::base::IString &&strMDDefinitions, adtf::base::IString &&strMDStruct) const =0
virtual tResult ProcessInputSample(const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample)=0
Definition someip_coder_intf.h:119
virtual tResult SetOutputHandler(const tOutputCallback &fnOutputCallback)=0
virtual tResult SetErrorHandler(const tErrorCallback &fnErrorCallback)=0
virtual tResult GarbageCollection(adtf::base::flash::tNanoSeconds tmTreshold)=0
ADTF_IID(ISomeIpDecoder, "someip_decoder.key.someip.sdk.devicetb.adtf.iid")
Interface ID for the SOME/IP coder interface.
Namespace for functionality provided by V3.7.0.
Definition someip_coder_intf.h:45
Namespace for functionality provided by V3.10.0.
Definition someip_coder_intf.h:116
Namespace for SOME/IP in ADTF-Devicetoolbox.
Definition raw_ethernet_types.h:40
key::ISomeIpDecoder ISomeIpDecoder
Definition someip_coder_intf.h:162
Namespace for SDK of ADTF-Devicetoolbox.
Definition bus_database_intf.h:42
Devicetoolbox - Namespace.
Definition bus_database_intf.h:36
ADTF - Namespace.
Definition bus_database_intf.h:30