ADTF
|
Factory class for ddl codecs for samples. More...
Public Member Functions | |
cSampleCodecFactory ()=default | |
Empty constructor. More... | |
cSampleCodecFactory (const char *strStructName, const char *strMediaDescription, adtf_ddl::tDataRepresentation eDefaultDataRepresentation=adtf_ddl::tDataRepresentation::Deserialized) | |
Constructor that take a DDL string for initialization. More... | |
cSampleCodecFactory (const adtf_ddl::cDDLComplex *pStruct, adtf_ddl::tDataRepresentation eDefaultDataRepresentation=adtf_ddl::tDataRepresentation::Deserialized) | |
Constructor that uses an OO-DDL struct for initialization. More... | |
cSampleCodecFactory (cSampleCodecFactory &)=default | |
Copy constructor. | |
cSampleCodecFactory (const cSampleCodecFactory &)=default | |
Copy constructor. | |
cSampleCodecFactory (cSampleCodecFactory &&)=default | |
Move constructor. | |
cSampleCodecFactory & | operator= (cSampleCodecFactory &)=default |
assignment operator | |
cSampleCodecFactory & | operator= (cSampleCodecFactory &&)=default |
Move assignment operator. | |
tResult | IsValid () const |
Check if the factory is in a valid state. More... | |
cStaticSampleDecoder | MakeStaticDecoderFor (const adtf::streaming::ISample &oSample, adtf_ddl::tDataRepresentation eDataRepresentation) const |
Creates a static decoder for the given sample. More... | |
cStaticSampleCodec | MakeStaticCodecFor (adtf::streaming::ISample &oSample, adtf_ddl::tDataRepresentation eDataRepresentation) const |
Creates a static codec for the given sample. More... | |
cSampleDecoder | MakeDecoderFor (const adtf::streaming::ISample &oSample, adtf_ddl::tDataRepresentation eDataRepresentation) const |
Creates a decoder for the given sample. More... | |
cSampleCodec | MakeCodecFor (adtf::streaming::ISample &oSample, adtf_ddl::tDataRepresentation eDataRepresentation) const |
Creates a codec for the given sample. More... | |
size_t | GetStaticElementCount () const |
tResult | GetStaticElement (size_t nIndex, const adtf_ddl::tStructElement *&pElement) const |
Access information about an element. More... | |
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 |
Creates a static decoder for the given sample. More... | |
cSampleDecoder | MakeDecoderFor (const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample, adtf_ddl::tDataRepresentation eDataRepresentation) const |
Creates a decoder for the given sample. More... | |
cStaticSampleCodec | MakeStaticCodecFor (const adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample, adtf_ddl::tDataRepresentation eDataRepresentation) const |
Creates a static codec for the given sample. More... | |
cSampleCodec | MakeCodecFor (const adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample, adtf_ddl::tDataRepresentation eDataRepresentation) const |
Creates a codec for the given sample. More... | |
cStaticSampleDecoder | MakeStaticDecoderFor (const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample) const |
Creates a static decoder for the given sample using the default data representation. More... | |
cSampleDecoder | MakeDecoderFor (const adtf::ucom::iobject_ptr< const adtf::streaming::ISample > &pSample) const |
Creates a decoder for the given sample using the default data representation. More... | |
cStaticSampleCodec | MakeStaticCodecFor (const adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample) const |
Creates a static codec for the given sample using the default data representation. More... | |
cSampleCodec | MakeCodecFor (const adtf::ucom::iobject_ptr< adtf::streaming::ISample > &pSample) const |
Creates a codec for the given sample using the default data representation. More... | |
cStaticSampleDecoder | MakeStaticDecoderFor (const adtf::streaming::ISample &oSample) const |
Creates a static decoder for the given sample using the default data representation. More... | |
cSampleDecoder | MakeDecoderFor (const adtf::streaming::ISample &oSample) const |
Creates a decoder for the given sample using the default data representation. More... | |
cStaticSampleCodec | MakeStaticCodecFor (adtf::streaming::ISample &oSample) const |
Creates a static codec for the given sample using the default data representation. More... | |
cSampleCodec | MakeCodecFor (adtf::streaming::ISample &oSample) const |
Creates a codec for the given sample using the default data representation. More... | |
Private Attributes | |
adtf_ddl::cCodecFactory | m_oFactory |
For internal use only. | |
adtf_ddl::tDataRepresentation | m_eDefaultDataRepresentation |
For internal use only. | |
Factory class for ddl codecs for samples.
Definition at line 179 of file sample_codec_legacy.h.
|
default |
Empty constructor.
This exists to enable uninitialized member variables of this type that are move-assigned later on.
cSampleCodecFactory | ( | const char * | strStructName, |
const char * | strMediaDescription, | ||
adtf_ddl::tDataRepresentation | eDefaultDataRepresentation = adtf_ddl::tDataRepresentation::Deserialized |
||
) |
Constructor that take a DDL string for initialization.
[in] | strStructName | The name of the struct for which codecs should be generated. |
[in] | strMediaDescription | The DDL description. |
[in] | eDefaultDataRepresentation | The representation used for the Make* factory methods without an parameter for the data representation. |
cSampleCodecFactory | ( | const adtf_ddl::cDDLComplex * | pStruct, |
adtf_ddl::tDataRepresentation | eDefaultDataRepresentation = adtf_ddl::tDataRepresentation::Deserialized |
||
) |
Constructor that uses an OO-DDL struct for initialization.
[in] | pStruct | The struct definition. |
[in] | eDefaultDataRepresentation | The representation used for the Make* factory methods without an parameter for the data representation. |
adtf_ddl::tDataRepresentation GetDefaultDataRepresentation | ( | ) | const |
size_t GetStaticBufferSize | ( | adtf_ddl::tDataRepresentation | eRep = adtf_ddl::tDataRepresentation::Deserialized | ) | const |
[in] | eRep | The data representation for which the buffer size should be returned. |
tResult GetStaticElement | ( | size_t | nIndex, |
const adtf_ddl::tStructElement *& | pElement | ||
) | const |
Access information about an element.
[in] | nIndex | The index of the element. |
[out] | pElement | Pointer that will be updated to point to the element information. |
ERR_INVALID_INDEX | Invalid index. |
size_t GetStaticElementCount | ( | ) | const |
tResult IsValid | ( | ) | const |
Check if the factory is in a valid state.
Referenced by md_sample_data_factory< T >::md_sample_data_factory().
|
inline |
Creates a codec for the given sample using the default data representation.
[in] | oSample | The sample. |
Definition at line 444 of file sample_codec_legacy.h.
References cSampleCodecFactory::m_eDefaultDataRepresentation, and cSampleCodecFactory::MakeCodecFor().
cSampleCodec MakeCodecFor | ( | adtf::streaming::ISample & | oSample, |
adtf_ddl::tDataRepresentation | eDataRepresentation | ||
) | const |
Creates a codec for the given sample.
[out] | oSample | The sample. |
[in] | eDataRepresentation | The data representation that the sample is in. |
Referenced by cSampleCodecFactory::MakeCodecFor(), and encoding_sample_writer< WriterImplementation >::MakeSample().
|
inline |
Creates a codec for the given sample using the default data representation.
[in] | pSample | The sample. |
Definition at line 400 of file sample_codec_legacy.h.
References iobject_ptr_base< T >::Get(), cSampleCodecFactory::m_eDefaultDataRepresentation, and cSampleCodecFactory::MakeCodecFor().
|
inline |
Creates a codec for the given sample.
[out] | pSample | The sample. |
[in] | eDataRepresentation | The data representation that the sample is in. |
Definition at line 355 of file sample_codec_legacy.h.
References iobject_ptr_base< T >::Get(), and cSampleCodecFactory::MakeCodecFor().
|
inline |
Creates a decoder for the given sample using the default data representation.
[in] | oSample | The sample. |
Definition at line 422 of file sample_codec_legacy.h.
References cSampleCodecFactory::m_eDefaultDataRepresentation, and cSampleCodecFactory::MakeDecoderFor().
cSampleDecoder MakeDecoderFor | ( | const adtf::streaming::ISample & | oSample, |
adtf_ddl::tDataRepresentation | eDataRepresentation | ||
) | const |
Creates a decoder for the given sample.
[in] | oSample | The sample. |
[in] | eDataRepresentation | The data representation that the sample is in. |
Referenced by decoding_sample_reader< ReaderImplementation >::GetLastDecoder(), decoding_sample_reader< ReaderImplementation >::GetNextDecoder(), md_sample_data_factory< T >::Make(), and cSampleCodecFactory::MakeDecoderFor().
|
inline |
Creates a decoder for the given sample using the default data representation.
[in] | pSample | The sample. |
Definition at line 378 of file sample_codec_legacy.h.
References iobject_ptr_base< T >::Get(), cSampleCodecFactory::m_eDefaultDataRepresentation, and cSampleCodecFactory::MakeDecoderFor().
|
inline |
Creates a decoder for the given sample.
[in] | pSample | The sample. |
[in] | eDataRepresentation | The data representation that the sample is in. |
Definition at line 329 of file sample_codec_legacy.h.
References iobject_ptr_base< T >::Get(), and cSampleCodecFactory::MakeDecoderFor().
|
inline |
Creates a static codec for the given sample using the default data representation.
[in] | oSample | The sample. |
Definition at line 433 of file sample_codec_legacy.h.
References cSampleCodecFactory::m_eDefaultDataRepresentation, and cSampleCodecFactory::MakeStaticCodecFor().
cStaticSampleCodec MakeStaticCodecFor | ( | adtf::streaming::ISample & | oSample, |
adtf_ddl::tDataRepresentation | eDataRepresentation | ||
) | const |
Creates a static codec for the given sample.
[out] | oSample | The sample. |
[in] | eDataRepresentation | The data representation that the sample is in. |
Referenced by cSampleCodecFactory::MakeStaticCodecFor().
|
inline |
Creates a static codec for the given sample using the default data representation.
[in] | pSample | The sample. |
Definition at line 389 of file sample_codec_legacy.h.
References iobject_ptr_base< T >::Get(), cSampleCodecFactory::m_eDefaultDataRepresentation, and cSampleCodecFactory::MakeStaticCodecFor().
|
inline |
Creates a static codec for the given sample.
[out] | pSample | The sample. |
[in] | eDataRepresentation | The data representation that the sample is in. |
Definition at line 342 of file sample_codec_legacy.h.
References iobject_ptr_base< T >::Get(), and cSampleCodecFactory::MakeStaticCodecFor().
|
inline |
Creates a static decoder for the given sample using the default data representation.
[in] | oSample | The sample. |
Definition at line 411 of file sample_codec_legacy.h.
References cSampleCodecFactory::m_eDefaultDataRepresentation, and cSampleCodecFactory::MakeStaticDecoderFor().
cStaticSampleDecoder MakeStaticDecoderFor | ( | const adtf::streaming::ISample & | oSample, |
adtf_ddl::tDataRepresentation | eDataRepresentation | ||
) | const |
Creates a static decoder for the given sample.
[in] | oSample | The sample. |
[in] | eDataRepresentation | The data representation that the sample is in. |
Referenced by cSampleCodecFactory::MakeStaticDecoderFor().
|
inline |
Creates a static decoder for the given sample using the default data representation.
[in] | pSample | The sample. |
Definition at line 367 of file sample_codec_legacy.h.
References iobject_ptr_base< T >::Get(), cSampleCodecFactory::m_eDefaultDataRepresentation, and cSampleCodecFactory::MakeStaticDecoderFor().
|
inline |
Creates a static decoder for the given sample.
[in] | pSample | The sample. |
[in] | eDataRepresentation | The data representation that the sample is in. |
Definition at line 316 of file sample_codec_legacy.h.
References iobject_ptr_base< T >::Get(), and cSampleCodecFactory::MakeStaticDecoderFor().