ADTF
Loading...
Searching...
No Matches
adtf::mediadescription::adtf_ddl_legacy::cSampleCodecFactory Class Reference

More...

#include <sample_codec_legacy.h>

Inherits adtf::mediadescription::ant::cSampleCodecFactory.

Inherited by adtf::mediadescription::flash::decoding_sample_reader< ReaderImplementation >, and adtf::mediadescription::flash::encoding_sample_writer< WriterImplementation >.

Public Types

typedef adtf_ddl::tStructElement DefinedStructElementType
 

Public Member Functions

 cSampleCodecFactory (const cStructureType &oTypeDefinition)
 
 cSampleCodecFactory (const streaming::ant::IStreamType &oStreamType)
 
 cSampleCodecFactory (const ucom::ant::iobject_ptr< const streaming::ant::IStreamType > &pStreamType)
 
 cSampleCodecFactory (const char *strStructName, const char *strMediaDescription, adtf_ddl::tDataRepresentation eDefaultDataRepresentation=adtf_ddl::tDataRepresentation::Deserialized)
 
 cSampleCodecFactory (const adtf_ddl::cDDLComplex *pStruct, adtf_ddl::tDataRepresentation eDefaultDataRepresentation=adtf_ddl::tDataRepresentation::Deserialized)
 
 cSampleCodecFactory (cSampleCodecFactory &)=default
 
 cSampleCodecFactory (const cSampleCodecFactory &)=default
 
 cSampleCodecFactory (cSampleCodecFactory &&)=default
 
size_t FindIndex (const char *strElementName) const
 
size_t FindArrayIndex (const char *strArrayName) const
 
size_t FindStructIndex (const char *strStructName) const
 
const adtf_ddl::tStructElement & GetStaticElement (size_t nElementIndex) const
 
tResult GetStaticElement (size_t nIndex, const adtf_ddl::tStructElement *&pElement) const
 
- Public Member Functions inherited from adtf::mediadescription::ant::cSampleCodecFactory
 cSampleCodecFactory ()=default
 
 cSampleCodecFactory (const char *strStructName, const char *strMediaDescription, adtf_ddl::tDataRepresentation eDefaultDataRepresentation=adtf_ddl::tDataRepresentation::Deserialized)
 
 cSampleCodecFactory (const adtf_ddl::cDDLComplex *pStruct, adtf_ddl::tDataRepresentation eDefaultDataRepresentation=adtf_ddl::tDataRepresentation::Deserialized)
 
 cSampleCodecFactory (cSampleCodecFactory &)=default
 
 cSampleCodecFactory (const cSampleCodecFactory &)=default
 
 cSampleCodecFactory (cSampleCodecFactory &&)=default
 
cSampleCodecFactoryoperator= (cSampleCodecFactory &)=default
 
cSampleCodecFactoryoperator= (cSampleCodecFactory &&)=default
 
tResult IsValid () const
 
cStaticSampleDecoder MakeStaticDecoderFor (const adtf::streaming::ISample &oSample, adtf_ddl::tDataRepresentation eDataRepresentation) const
 
cStaticSampleCodec MakeStaticCodecFor (adtf::streaming::ISample &oSample, adtf_ddl::tDataRepresentation eDataRepresentation) const
 
cSampleDecoder MakeDecoderFor (const adtf::streaming::ISample &oSample, adtf_ddl::tDataRepresentation eDataRepresentation) const
 
cSampleCodec MakeCodecFor (adtf::streaming::ISample &oSample, adtf_ddl::tDataRepresentation eDataRepresentation) const
 
size_t GetStaticElementCount () const
 
tResult GetStaticElement (size_t nIndex, const adtf_ddl::tStructElement *&pElement) const
 
size_t GetStaticBufferSize (adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized) const
 
adtf_ddl::tDataRepresentation GetDefaultDataRepresentation () const
 
cStaticSampleDecoder MakeStaticDecoderFor (const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample, adtf_ddl::tDataRepresentation eDataRepresentation) const
 
cSampleDecoder MakeDecoderFor (const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample, adtf_ddl::tDataRepresentation eDataRepresentation) const
 
cStaticSampleCodec MakeStaticCodecFor (const adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample, adtf_ddl::tDataRepresentation eDataRepresentation) const
 
cSampleCodec MakeCodecFor (const adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample, adtf_ddl::tDataRepresentation eDataRepresentation) const
 
cStaticSampleDecoder MakeStaticDecoderFor (const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample) const
 
cSampleDecoder MakeDecoderFor (const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample) const
 
cStaticSampleCodec MakeStaticCodecFor (const adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample) const
 
cSampleCodec MakeCodecFor (const adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample) const
 
cStaticSampleDecoder MakeStaticDecoderFor (const adtf::streaming::ISample &oSample) const
 
cSampleDecoder MakeDecoderFor (const adtf::streaming::ISample &oSample) const
 
cStaticSampleCodec MakeStaticCodecFor (adtf::streaming::ISample &oSample) const
 
cSampleCodec MakeCodecFor (adtf::streaming::ISample &oSample) const
 

Static Public Member Functions

static const char * GetStaticStructElementName (const adtf_ddl::tStructElement *pElement)
 add for legacy reason
 

Detailed Description

(Legacy) Factory class for ddl codecs for samples.

Constructor & Destructor Documentation

◆ cSampleCodecFactory() [1/5]

adtf::mediadescription::ant::cSampleCodecFactory::cSampleCodecFactory ( const char * strStructName,
const char * strMediaDescription,
adtf_ddl::tDataRepresentation eDefaultDataRepresentation = adtf_ddl::tDataRepresentation::Deserialized )

Constructor that take a DDL string for initialization.

Parameters
[in]strStructNameThe name of the struct for which codecs should be generated.
[in]strMediaDescriptionThe DDL description.
[in]eDefaultDataRepresentationThe representation used for the Make* factory methods without an parameter for the data representation.

◆ cSampleCodecFactory() [2/5]

adtf::mediadescription::ant::cSampleCodecFactory::cSampleCodecFactory ( const adtf_ddl::cDDLComplex * pStruct,
adtf_ddl::tDataRepresentation eDefaultDataRepresentation = adtf_ddl::tDataRepresentation::Deserialized )

Constructor that uses an OO-DDL struct for initialization.

Parameters
[in]pStructThe struct definition.
[in]eDefaultDataRepresentationThe representation used for the Make* factory methods without an parameter for the data representation.

◆ cSampleCodecFactory() [3/5]

adtf::mediadescription::ant::cSampleCodecFactory::cSampleCodecFactory ( cSampleCodecFactory & )
default

Copy constructor

◆ cSampleCodecFactory() [4/5]

adtf::mediadescription::ant::cSampleCodecFactory::cSampleCodecFactory ( const cSampleCodecFactory & )
default

Copy constructor

◆ cSampleCodecFactory() [5/5]

adtf::mediadescription::ant::cSampleCodecFactory::cSampleCodecFactory ( cSampleCodecFactory && )
default

Move constructor

Member Function Documentation

◆ GetStaticElement()

tResult adtf::mediadescription::ant::cSampleCodecFactory::GetStaticElement ( size_t nIndex,
const adtf_ddl::tStructElement *& pElement ) const

Access information about an element.

Parameters
[in]nIndexThe index of the element.
[out]pElementPointer that will be updated to point to the element information.
Return values
ERR_INVALID_INDEXInvalid index.

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