40 "There is no description specialization available for this type."
41 " Please make sure that you generate and include the corresponding header file.");
70 "There is no md_sample_data specialization available for this type."
71 " Please make sure that you generate and include the corresponding header file.");
83template <
typename T,
typename UnderlyingType = T>
87 md_array(
const size_t aIndices[],
88 std::shared_ptr<adtf::mediadescription::ant::cSampleDecoder> pDecoder):
94 T operator[](
size_t nIndex)
const
96 return static_cast<T
>(
static_cast<UnderlyingType
>(m_pDecoder->GetElementValue(m_pIndices[nIndex])));
100 const size_t* m_pIndices =
nullptr;
101 std::shared_ptr<adtf::mediadescription::ant::cSampleDecoder> m_pDecoder;
117 std::shared_ptr<adtf::mediadescription::ant::cSampleDecoder> decoder):
118 m_pIndices(aIndices),
130 std::shared_ptr<adtf::mediadescription::ant::cSampleDecoder> m_pDecoder;
143 pIndices(std::move(pIndices))
146 std::shared_ptr<indices<T>> pIndices;
164class md_sample_data_factory
170 md_sample_data_factory():
176 md_sample_data_factory(md_sample_data_factory&&) =
default;
177 md_sample_data_factory& operator=(md_sample_data_factory&&) =
default;
187 md_sample_data_factory(*pStreamType.Get())
198 m_oFactory(oStreamType),
199 m_pIndices(std::make_shared<
indices<T>>())
202 m_pIndices->Find(m_oFactory,
"");
212 m_oFactory(strStructName, strDefinition),
213 m_pIndices(std::make_shared<
indices<T>>())
216 m_pIndices->Find(m_oFactory,
"");
227 std::make_shared<detail::decoder_with_indices<T>>(m_oFactory.MakeDecoderFor(pSample),
233 std::shared_ptr<indices<T>> m_pIndices;
Definition for type traits helper Copyright © Audi Electronics Venture GmbH. All rights reserved.
#define THROW_IF_FAILED(s)
throws if the expression returns a failed tResult
Definition result.h:88
Defines access methods for the interface of a Stream Type.
Definition streamtype_intf.h:96
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
constexpr bool always_false
helper template to get a always false expression.
Definition adtf_base_type_traits.h:23
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14