ADTF  3.18.2
media_description_type_legacy.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "sample_codec_legacy.h"
10 #include "md_sample_data_legacy.h"
11 
16 
17 #ifdef ADTF3_NO_DEPRECATED_WARNING
18  #ifndef PKG_ADTF_DDL_NO_DEPRECATED_WARNING
19  #define PKG_ADTF_DDL_NO_DEPRECATED_WARNING
20  #endif
21 #endif
22 #include <pkg_ddl.h>
23 #include <utility>
24 #include <adtf_base_deprecated.h>
25 
26 namespace adtf
27 {
28 namespace mediadescription
29 {
30 namespace ant
31 {
32 
42  "Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, const char*, adtf_ddl::tDataRepresentation) "
43  "instead!")
44 tResult create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription,
45  ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
47 
57 tResult create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription,
58  ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
59  cSampleCodecFactory& oFactory,
61 
72  "instead!")
74  ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
76 
88  ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
89  cSampleCodecFactory& oFactory,
91 
100 tResult set_stream_type_media_description(adtf::streaming::IStreamType& oStreamType,
101  const char* strStructName,
102  const char* strMediaDescription,
104 
113 tResult set_stream_type_media_description_from_service(adtf::streaming::IStreamType& oStreamType,
114  const char* strStructName,
116 
117 
124 tResult get_codec_factory_from_stream_type(const adtf::streaming::IStreamType& oStreamType,
125  cSampleCodecFactory& oFactory);
126 
133 tResult add_stream_meta_type(const adtf::streaming::IStreamMetaType& oStreamTypeDef,
134  adtf_ddl::cDDLDescription& oDescription);
135 
143 template <typename WRITER>
144 inline tResult make_sample_writer(WRITER& oWriter,
145  const char* strNameOfWriter,
146  const char* strDDLStructType)
147 {
150  return adtf::streaming::ant::make_sample_writer(oWriter, strNameOfWriter, pType);
151 }
152 
160 template <typename READER>
161 inline tResult make_sample_reader(READER& oReader,
162  const char* strNameOfReader,
163  const char* strDDLStructType)
164 {
167  return adtf::streaming::ant::make_sample_reader(oReader, strNameOfReader, pType);
168 }
169 
170 
172 
173 tResult get_stream_description_xml(const char* strName,
174  const adtf::streaming::IStreamType& oStreamType,
175  adtf::base::IString&& strDDLStream);
176 
177 tResult create_stream_type_from_xml(const char* strXML,
178  adtf::base::IString&& strName,
180 
181 tResult get_stream_description_xml(const std::vector<std::pair<adtf_util::cString,
182  const adtf::streaming::IStreamType*>> oStreams,
183  adtf::base::IString&& strDDLStreams);
184 
185 class cXercesInitializer
186 {
187  public:
188  cXercesInitializer() = default;
189  ~cXercesInitializer() = default;
190 };
191 
193 
194 }
195 
196 namespace flash
197 {
198 
206 template <typename WRITER>
207 inline tResult make_sample_writer(WRITER& oWriter,
208  const char* strNameOfWriter,
209  const char* strDDLStructType)
210 {
213  return streaming::flash::make_sample_writer(oWriter, strNameOfWriter, pType);
214 }
215 
223 template <typename READER>
224 inline tResult make_sample_reader(READER& oReader,
225  const char* strNameOfReader,
226  const char* strDDLStructType)
227 {
230  return streaming::flash::make_sample_reader(oReader, strNameOfReader, pType);
231 }
232 
241 
249 ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, const char*) instead!")
250 ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription);
251 
257 template <typename Struct>
258 ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<T>>() instead!")
259 ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type()
260 {
264 }
265 
275  const char* strStructName,
276  const char* strMediaDescription,
278 
287  const cStructureType& type_definition,
289 
297 
298 }
299 
300 namespace hollow
301 {
302 
309 std::tuple<std::string, std::string, adtf_ddl::tDataRepresentation> get_media_description_from_stream_type(const adtf::streaming::IStreamType& oStreamType);
310 
319  "Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, ddl::tDataRepresentation) instead!")
320 ucom::ant::object_ptr<streaming::ant::IStreamType> stream_type_from_service(const char* strStructName, adtf_ddl::tDataRepresentation eRep = adtf_ddl::tDataRepresentation::Deserialized);
321 
322 }
323 
324 }
325 
326 }
Copyright © Audi Electronics Venture GmbH.
#define ADTF3_DEPRECATED(_depr_message_)
Mark a function or variable as deprecated.
Defintion of a property set container interface.
The IString interface provides methods for getting and setting strings through abstract interfaces.
Definition: string_intf.h:28
Factory class for ddl codecs for samples.
Generator template to create an instance of the stream_meta_type_default.
Defines access methods for the interface of a Stream Type - see also Stream Type and Stream Meta Type...
Base object pointer to realize binary compatible reference counting in interface methods.
Object pointer implementation used for reference counting on objects of type IObject.
Definition: object_ptr.h:163
Copyright © Audi Electronics Venture GmbH.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
Definition: string.h:2778
tResult get_codec_factory_from_stream_type(const adtf::streaming::IStreamType &oStreamType, cSampleCodecFactory &oFactory)
Create a sample codec factory from a given stream type.
tResult make_sample_writer(WRITER &oWriter, const char *strNameOfWriter, const char *strDDLStructType)
Creates a new sample writer.
tResult add_stream_meta_type(const adtf::streaming::IStreamMetaType &oStreamTypeDef, adtf_ddl::cDDLDescription &oDescription)
Add the stream meta type to an OODDL description.
tResult create_adtf_default_stream_type(const char *strStructName, const char *strMediaDescription, ucom::iobject_ptr< adtf::streaming::IStreamType > &pStreamType, cSampleCodecFactory &oFactory, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
Create an instance of an ADTF default stream type.
tResult set_stream_type_media_description(adtf::streaming::IStreamType &oStreamType, const char *strStructName, const char *strMediaDescription, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
Set the media description properties of a stream type.
tResult make_sample_reader(READER &oReader, const char *strNameOfReader, const char *strDDLStructType)
Creates a new sample reader.
tResult set_stream_type_media_description_from_service(adtf::streaming::IStreamType &oStreamType, const char *strStructName, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
Set the media description properties of a stream type.
tResult create_adtf_default_stream_type_from_service(const char *strStructName, ucom::iobject_ptr< adtf::streaming::IStreamType > &pStreamType, cSampleCodecFactory &oFactory, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
Create an instance of an ADTF default stream type.
ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, const char*, adtf_ddl::tDataRepresentation) " "instead!") tResult create_adtf_default_stream_type(const char *strStructName
Create an instance of an ADTF default stream type.
void set_stream_type_media_description(streaming::ant::IStreamType &oStreamType, const cStructureType &type_definition)
Adds the media description properties to a stream type.
tResult make_sample_reader(READER &oReader, const char *strNameOfReader, const char *strDDLStructType)
Helper template to setup a sample reader with a stream type set from the media description service.
ucom::ant::object_ptr< streaming::ant::IStreamType > create_adtf_default_stream_type(const cStructureType &type_definition)
Create a stream type containing the media description of a given structure type definition.
tResult make_sample_writer(WRITER &oWriter, const char *strNameOfWriter, const char *strDDLStructType)
Helper template to setup a sample writer with a stream type set from the media description service.
tResult set_media_description_properties(base::ant::IProperties &oProperties, const char *strStructName, const char *strMediaDescription, adtf_ddl::tDataRepresentation eRep=adtf_ddl::tDataRepresentation::Deserialized)
Adds the media description properties to a properties object.
std::tuple< std::string, std::string, adtf_ddl::tDataRepresentation > get_media_description_from_stream_type(const adtf::streaming::IStreamType &oStreamType)
Extract the media description information from stream type.
tResult make_sample_writer(cSampleWriter &oWriter, const char *strNameOfWriter, const ucom::ant::iobject_ptr< const IStreamType > &pStreamType)
Definition: samplewriter.h:348
tResult make_sample_reader(cSampleReader &oReader, const char *strNameOfReader, const ucom::iobject_ptr< const IStreamType > &pStreamType)
Initializes a cSampleReader with given name and StreamType param[in] oReader Reader to intialize para...
Definition: samplereader.h:914
std::enable_if< !std::is_base_of< enable_object_ptr_from_this< typename std::remove_cv< Implementation >::type >, typename std::remove_cv< Implementation >::type >::value, object_ptr< Implementation > >::type make_object_ptr(Args &&... args)
Create an instance of type object_ptr with Implementation as the shared resource.
ant::object_ptr< T > object_ptr
Alias always bringing the latest version of ant::object_ptr into scope.
Definition: object_ptr.h:413
ant::iobject_ptr< T > iobject_ptr
Alias always bringing the latest version of ant::iobject_ptr into scope.
Namespace for the mainpage_pkg_ddl.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Template to provide struct name and definition for a generated struct.
Copyright © Audi Electronics Venture GmbH.
#define RETURN_IF_THROWS(s)
if the expression throws an exception, returns a tResult containing the exception information.