ADTF
Loading...
Searching...
No Matches
adtf::streaming::ant::ISampleSerialization Class Referenceabstract

#include <sample_serialization_intf.h>

Inherits adtf::ucom::ant::IObject.

Public Member Functions

 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
 
virtual tResult Serialize (const ISample &pSample, ucom::ant::IOutputStream &oStream)=0
 
virtual tResult Deserialize (const ucom::ant::IInputStream &oStream, ISample &pSample)=0
 
- Public Member Functions inherited from adtf::ucom::ant::IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 

Additional Inherited Members

- Protected Member Functions inherited from adtf::ucom::ant::IObject
 ~IObject ()=default
 Protected destructor --> Only the final implementation can be destroyed!
 

Detailed Description

Interface for serializing samples.

Member Function Documentation

◆ Deserialize()

virtual tResult adtf::streaming::ant::ISampleSerialization::Deserialize ( const ucom::ant::IInputStream & oStream,
ISample & pSample )
pure virtual

Deserializes a sample from a stream.

Parameters
[in]oStreamThe input stream.
[out]pSampleThe sample to deserialize the data to.
Returns
Standard result.

◆ Serialize()

virtual tResult adtf::streaming::ant::ISampleSerialization::Serialize ( const ISample & pSample,
ucom::ant::IOutputStream & oStream )
pure virtual

Serializes a given sample into the given stream.

Parameters
[in]pSampleThe sample to serialize.
[out]oStreamThe output stream.
Returns
Standard result.

◆ SetStreamType()

virtual tResult adtf::streaming::ant::ISampleSerialization::SetStreamType ( const ucom::ant::iobject_ptr< const IStreamType > & pType)
pure virtual

Set the stream type information

Parameters
[in]pTypeThe type.
Returns
Standard result.

The documentation for this class was generated from the following file: