ADTF  3.13.0
cSampleDecoder

Decoder for samples with static and/or dynamic data. More...

Inheritance diagram for cSampleDecoder:
[legend]

Public Member Functions

 cSampleDecoder ()=default
 Default constructor.
 
 cSampleDecoder (cSampleDecoder &&)=default
 Move constructor.
 
cSampleDecoderoperator= (cSampleDecoder &&)=default
 Move assignment operator.
 
adtf::util::cVariant GetElementValue (tSize nElementIndex) const
 
adtf::util::cVariant GetElementValue (const char *strElementName) const
 
adtf::util::cString GetElementValueString (tSize nElementIndex) const
 
adtf::util::cString GetElementValueString (const char *strElementName) const
 
const adtf_ddl::tStructElementGetElement (tSize nElementIndex) const
 
- Public Member Functions inherited from cDecoder
 cDecoder ()=default
 Default constructor.
 
 cDecoder (cDecoder &&)=default
 Move constructor.
 
cDecoderoperator= (cDecoder &&)=default
 Move assignment operator.
 
virtual tResult IsValid () const override
 
virtual tSize GetElementCount () const override
 
tSize GetBufferSize (tDataRepresentation eRep=tDataRepresentation::Deserialized) const
 
cCodec MakeCodecFor (tVoid *pData, tSize nDataSize, tDataRepresentation eRep) const
 Create a new codec with the current dynamic structure layout for a new data buffer. More...
 
- Public Member Functions inherited from cStaticDecoder
 cStaticDecoder ()
 Default constructor.
 
 cStaticDecoder (cStaticDecoder &&)=default
 Move constructor.
 
cStaticDecoderoperator= (cStaticDecoder &&)=default
 Move assignment operator.
 
tResult GetElement (tSize nIndex, const tStructElement *&pElement) const
 Access information about an element. More...
 
tResult GetElementValue (tSize nIndex, tVoid *pValue) const
 Returns the current value of the given element by copying its data to the passed-in location. More...
 
tResult GetElementValue (tSize nIndex, A_UTILS_NS::cVariant &oValue) const
 Returns the current value of the given element as a variant. More...
 
const tVoidGetElementAddress (tSize nIndex) const
 
tSize GetStaticBufferSize (tDataRepresentation eRep=tDataRepresentation::Deserialized) const
 
tDataRepresentation GetRepresentation () const
 

Private Member Functions

 cSampleDecoder (adtf_ddl::cDecoder &&oDecoder, adtf::ucom::object_ptr_shared_locked< const adtf::streaming::ISampleBuffer > &&pBuffer)
 For internal use only.
 

Private Attributes

adtf::ucom::object_ptr_shared_locked< const adtf::streaming::ISampleBufferm_pBuffer
 For internal use only.
 

Additional Inherited Members

- Protected Member Functions inherited from cDecoder
 cDecoder (std::shared_ptr< const cStructLayout > pLayout, const tVoid *pData, tSize nDataSize, tDataRepresentation eRep)
 For internal use only.
 
 cDecoder (const cDecoder &oDecoder, const tVoid *pData, tSize nDataSize, tDataRepresentation eRep)
 For internal use only.
 
virtual const tStructLayoutElement * GetLayoutElement (tSize nIndex) const override
 For internal use only.
 
- Protected Member Functions inherited from cStaticDecoder
 cStaticDecoder (std::shared_ptr< const cStructLayout > pLayout, const tVoid *pData, tSize nDataSize, tDataRepresentation eRep)
 For internal use only.
 
- Protected Attributes inherited from cDecoder
std::shared_ptr< std::vector< tStructLayoutElement > > m_pDynamicElements
 For internal use only.
 
tOffsets m_sBufferSizes
 For internal use only.
 
- Protected Attributes inherited from cStaticDecoder
std::shared_ptr< const cStructLayout > m_pLayout
 For internal use only.
 
const tVoidm_pData
 For internal use only.
 
tSize m_nDataSize
 For internal use only.
 
const cElementAccessor * m_pElementAccessor
 For internal use only.
 

Detailed Description

Decoder for samples with static and/or dynamic data.

Definition at line 98 of file sample_codec.h.


Copyright © Audi Electronics Venture GmbH. All rights reserved. (Generated on Tue Sep 28 2021 by doxygen 1.8.14)