ADTF
Loading...
Searching...
No Matches
adtf::mediadescription::osborn::adtf_ddl_access::cCodecLegacy< CodecType > Class Template Referenceabstract

Legacy class for cSampleCodec and cStaticSampleCodec. More...

#include <sample_codec_access_legacy.h>

Public Member Functions

tResult SetElementValue (tCodecLeafIndex nElementLeafIndex, const adtf_util::cVariant &oValue)
 Legacy: Set the Element Value.
 
tResult SetElementValue (const char *strElementName, const adtf_util::cVariant &oValue)
 Legacy: Set the Element Value.
 
void * GetElementAddress (tCodecLeafIndex nElementLeafIndex)
 Legacy:Get the Element Address object.
 

Protected Member Functions

virtual CodecType * getCodec ()=0
 Get the Codec.
 

Detailed Description

template<typename CodecType>
class adtf::mediadescription::osborn::adtf_ddl_access::cCodecLegacy< CodecType >

Legacy class for cSampleCodec and cStaticSampleCodec.

Template Parameters
CodecTypethe base type for the coder (ddlCodec or ddl::StaticCodec)

Member Function Documentation

◆ getCodec()

template<typename CodecType>
virtual CodecType * adtf::mediadescription::osborn::adtf_ddl_access::cCodecLegacy< CodecType >::getCodec ( )
protectedpure virtual

Get the Codec.

Returns
CodecType*

◆ GetElementAddress()

template<typename CodecType>
void * adtf::mediadescription::osborn::adtf_ddl_access::cCodecLegacy< CodecType >::GetElementAddress ( tCodecLeafIndex nElementLeafIndex)
inline

Legacy:Get the Element Address object.

Parameters
nElementLeafIndexThe leaf index (between 0 and GetElementCount())
Return values
void*Pointer into data structure
nullptrElement not found
Deprecated
This is only provided for legacy reason. Use adtf::mediadescription::cSampleDecoder::GetElement instead

◆ SetElementValue() [1/2]

template<typename CodecType>
tResult adtf::mediadescription::osborn::adtf_ddl_access::cCodecLegacy< CodecType >::SetElementValue ( const char * strElementName,
const adtf_util::cVariant & oValue )
inline

Legacy: Set the Element Value.

Parameters
strElementNameThe element name
oValuethe value to set
Returns
tResult
Remarks
This function does not throw!
Deprecated
This is only provided for legacy reason. Use adtf::mediadescription::cSampleDecoder::GetElement instead

◆ SetElementValue() [2/2]

template<typename CodecType>
tResult adtf::mediadescription::osborn::adtf_ddl_access::cCodecLegacy< CodecType >::SetElementValue ( tCodecLeafIndex nElementLeafIndex,
const adtf_util::cVariant & oValue )
inline

Legacy: Set the Element Value.

Parameters
nElementLeafIndexThe leaf index (between 0 and GetElementCount())
oValuethe value to set
Returns
tResult
Remarks
This function does not throw!
Deprecated
This is only provided for legacy reason. Use adtf::mediadescription::cSampleDecoder::GetElement instead

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