ADTF  3.18.2
sample_serialization_intf.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "streamtype_intf.h"
9 #include "sample_intf.h"
10 
11 namespace adtf
12 {
13 namespace streaming
14 {
15 namespace ant
16 {
17 
22 {
23  public:
25  ADTF_IID(ISampleSerialization, "sample_serialization.ant.streaming.adtf.iid");
26 
27  public:
34 
41  virtual tResult Serialize(const ISample& pSample, ucom::ant::IOutputStream& oStream) = 0;
42 
49  virtual tResult Deserialize(const ucom::ant::IInputStream& oStream, ISample& pSample) = 0;
50 };
51 
52 }
53 
55 
56 }
57 }
The ISample interface sets and retrieves properties on samples .
Definition: sample_intf.h:35
virtual tResult Serialize(const ISample &pSample, ucom::ant::IOutputStream &oStream)=0
Serializes a given sample into the given stream.
ADTF_IID(ISampleSerialization, "sample_serialization.ant.streaming.adtf.iid")
definition of interface id
virtual tResult SetStreamType(const ucom::ant::iobject_ptr< const IStreamType > &pType)=0
Set the stream type information.
virtual tResult Deserialize(const ucom::ant::IInputStream &oStream, ISample &pSample)=0
Deserializes a sample from a stream.
An interface for reading data from a stream.
Definition: stream_intf.h:24
Base class for every interface type within the uCOM.
Definition: object_intf.h:31
An interface for writing data to a stream.
Definition: stream_intf.h:54
Base object pointer to realize binary compatible reference counting in interface methods.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.