ADTF
Loading...
Searching...
No Matches
adtf::mediadescription::osborn::sample_decoder_access< AccessType > Class Template Reference

Implementation for decoder access concept (ddl::codec::DecoderElementAccess). More...

#include <sample_codec_access_types.h>

Inherited by adtf::mediadescription::osborn::sample_codec_access< AccessType >.

Public Types

typedef AccessType access_type
 used access type.
 
typedef tCodecIndex index_type
 used index type.
 
typedef ddl::codec::DecoderElement< sample_decoder_access< AccessType > > element_type
 supported element type.
 

Static Public Member Functions

static element_type getElement (access_type &access, std::string_view full_element_name)
 Get a element object for the given full_element_name.
 
static element_type getChildElement (const access_type &access, const index_type &parent_index, std::string_view element_path)
 Get a child element object for the given index.
 
static element_type getElement (access_type &access, const index_type &index)
 Get a element object for the given index.
 
static size_t getChildCount (access_type &access, const index_type &index)
 Get the Child Count.
 
static std::string getFullName (access_type &access, const index_type &index)
 Get the full name of the element within its main structure. If the element is an array you get the elements array name respresentation: "main_element.element_name[0]" or main_element.element_name[1] ... etc. If the element is not an array you get the elements name respresentation: "main_element.element_name".
 
static std::string getName (access_type &access, const index_type &index)
 Get the name of the element within its level structure. If the element is an array you get the elements array name respresentation: "element_name[0]" or element_name[1] ... etc. If the element is not an array you get the elements name respresentation: "element_name".
 
static std::string getBaseName (access_type &access, const index_type &index)
 Get the base name of the element within its level structure. If the element is an array you get the elements base name respresentation : "element_name" for each array element. If the element is not an array you get the elements name respresentation is also the base name respresentation: "element_name".
 
template<typename T>
static T getValue (access_type &access, const index_type &index)
 Get the value.
 
static a_util::variant::Variant getVariantValue (access_type &access, const index_type &index)
 Get the value as variant.
 
static std::string getStringValue (access_type &access, const index_type &index)
 Get the value as string.
 
static void getRawValue (access_type &access, const index_type &index, void *value, size_t value_size)
 Get the value by copy to the given value buffer.
 
static const void * getAddress (access_type &access, const index_type &index)
 Get the address.
 
static void resolve (access_type &access, index_type &index)
 Resolves the given CodecIndex and set the layout information.
 

Detailed Description

template<typename AccessType>
class adtf::mediadescription::osborn::sample_decoder_access< AccessType >

Implementation for decoder access concept (ddl::codec::DecoderElementAccess).

Template Parameters
AccessTypeThe adtf access type to use.

Member Function Documentation

◆ getAddress()

template<typename AccessType>
static const void * adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getAddress ( access_type & access,
const index_type & index )
inlinestatic

Get the address.

Parameters
accessdefined access type.
indexThe codec index.
Returns
const void*

◆ getBaseName()

template<typename AccessType>
static std::string adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getBaseName ( access_type & access,
const index_type & index )
inlinestatic

Get the base name of the element within its level structure. If the element is an array you get the elements base name respresentation : "element_name" for each array element. If the element is not an array you get the elements name respresentation is also the base name respresentation: "element_name".

Parameters
accessdefined access type.
indexThe codec index
Returns
std::string

◆ getChildCount()

template<typename AccessType>
static size_t adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getChildCount ( access_type & access,
const index_type & index )
inlinestatic

Get the Child Count.

Parameters
accessdefined access type.
indexThe codec index
Returns
size_t

◆ getChildElement()

template<typename AccessType>
static element_type adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getChildElement ( const access_type & access,
const index_type & parent_index,
std::string_view element_path )
inlinestatic

Get a child element object for the given index.

Parameters
accessdefined access type.
indexThe codec index of the parent.
element_pathThe child element path.
Returns
element_type

◆ getElement() [1/2]

template<typename AccessType>
static element_type adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getElement ( access_type & access,
const index_type & index )
inlinestatic

Get a element object for the given index.

Parameters
accessdefined access type.
indexThe codec index.
Returns
element_type

◆ getElement() [2/2]

template<typename AccessType>
static element_type adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getElement ( access_type & access,
std::string_view full_element_name )
inlinestatic

Get a element object for the given full_element_name.

Parameters
accessdefined access type.
full_element_nameThe full name of the element in point notation (i.e. "element1.child_element[4].element_value").
Returns
element_type

◆ getFullName()

template<typename AccessType>
static std::string adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getFullName ( access_type & access,
const index_type & index )
inlinestatic

Get the full name of the element within its main structure. If the element is an array you get the elements array name respresentation: "main_element.element_name[0]" or main_element.element_name[1] ... etc. If the element is not an array you get the elements name respresentation: "main_element.element_name".

Parameters
accessdefined access type.
indexThe codec index
Returns
std::string

◆ getName()

template<typename AccessType>
static std::string adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getName ( access_type & access,
const index_type & index )
inlinestatic

Get the name of the element within its level structure. If the element is an array you get the elements array name respresentation: "element_name[0]" or element_name[1] ... etc. If the element is not an array you get the elements name respresentation: "element_name".

Parameters
accessdefined access type.
indexThe codec index
Returns
std::string

◆ getRawValue()

template<typename AccessType>
static void adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getRawValue ( access_type & access,
const index_type & index,
void * value,
size_t value_size )
inlinestatic

Get the value by copy to the given value buffer.

Parameters
accessdefined access type.
indexThe codec index.
valuethe value buffer pointer.
value_sizethe size of the value buffer in bytes.

◆ getStringValue()

template<typename AccessType>
static std::string adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getStringValue ( access_type & access,
const index_type & index )
inlinestatic

Get the value as string.

Parameters
accessdefined access type.
indexThe codec index.
Returns
value as string (the value is returned as element name in case of enum type)
Remarks
for T = std::string

◆ getValue()

template<typename AccessType>
template<typename T>
static T adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getValue ( access_type & access,
const index_type & index )
inlinestatic

Get the value.

Parameters
accessdefined access type.
indexThe codec index.
Template Parameters
TThe type of the value to return.
Returns
value in type T (supported types: all int types, bool, float, double, std::string)
Remarks
for T = std::string the value is returned as element name in case of enum type

◆ getVariantValue()

template<typename AccessType>
static a_util::variant::Variant adtf::mediadescription::osborn::sample_decoder_access< AccessType >::getVariantValue ( access_type & access,
const index_type & index )
inlinestatic

Get the value as variant.

Parameters
accessdefined access type.
indexThe codec index.
Returns
value as variant (supported types: all int types, bool, float, double, std::string)

◆ resolve()

template<typename AccessType>
static void adtf::mediadescription::osborn::sample_decoder_access< AccessType >::resolve ( access_type & access,
index_type & index )
inlinestatic

Resolves the given CodecIndex and set the layout information.

Parameters
accessdefined access type.
indexThe codec index to resolve
Exceptions
throwsif not found

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