ADTF  3.18.2
media_description_type.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "sample_codec.h"
9 #include "stream_type_default.h"
12 
13 
14 #ifdef USE_ADTF_MEDIA_DESCRIPTION_LEGACY
15  #ifndef NO_ADTF_MEDIA_DESCRIPTION_LEGACY
17  #endif
18 #endif
19 
20 #include <adtf_base_deprecated.h>
21 #include <utility>
22 
23 namespace adtf
24 {
25 namespace mediadescription
26 {
27 namespace osborn
28 {
37 ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, const char*, "
38  "ddl::tDataRepresentation) instead!")
39 tResult create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription, ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType, ddl::tDataRepresentation eRep = ddl::tDataRepresentation::Deserialized);
40 
50 tResult create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription, ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType, cSampleCodecFactory& oFactory, ddl::tDataRepresentation eRep = ddl::tDataRepresentation::Deserialized);
51 
62  "Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, ddl::tDataRepresentation) instead!")
64  ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
66 
78  ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType,
79  cSampleCodecFactory& oFactory,
87 tResult add_stream_meta_type(const adtf::streaming::IStreamMetaType& oStreamTypeDef,
88  ddl::DataDescription& oDescription);
89 
91 
92 tResult get_stream_description_xml(const char* strName,
93  const adtf::streaming::IStreamType& oStreamType,
94  adtf::base::IString&& strDDLStream);
95 
96 tResult create_stream_type_from_xml(const char* strXML,
97  adtf::base::IString&& strName,
98  ucom::iobject_ptr<adtf::streaming::IStreamType>& pStreamType);
99 
100 tResult get_stream_description_xml(const std::vector<std::pair<adtf_util::cString,
101  const adtf::streaming::IStreamType*>> oStreams,
102  adtf::base::IString&& strDDLStreams);
103 
111 ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const ddl::DDStructure&) instead!")
112 ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type(const ddl::DDStructure& type_definition);
113 
121 ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, const char*) instead!")
122 ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type(const char* strStructName, const char* strMediaDescription);
123 
130 ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type(const std::pair<std::string, std::string>& oTypeDescription);
131 
137 template<typename Struct>
138 ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<T>>() instead!")
139 ucom::ant::object_ptr<streaming::ant::IStreamType> create_adtf_default_stream_type()
140 {
141  static_assert(has_description_v<Struct>,
142  "create_adtf_default_stream_type<T>() can only be used if ddl description was generated with adtf_mdgen! "
143  "If you have another source for the description, use create_adtf_default_stream_type(...).");
144 
145  return osborn::create_adtf_default_stream_type(description<Struct>::name,
146  description<Struct>::definition);
147 }
148 
157 ADTF3_DEPRECATED("Use adtf::ucom::make_object_ptr<stream_type_default<>>(const char*, ddl::tDataRepresentation) instead!")
158 ucom::ant::object_ptr<streaming::ant::IStreamType>
159  stream_type_from_service(const char* strStructName,
161 
162 } //namespace osborn
163 
164 using osborn::create_adtf_default_stream_type;
166 
167 using osborn::add_stream_meta_type;
168 using osborn::get_stream_description_xml;
169 using osborn::create_stream_type_from_xml;
170 using osborn::stream_type_from_service;
171 
172 } // namespace mediadescription
173 } // namespace adtf
Copyright © Audi Electronics Venture GmbH.
#define ADTF3_DEPRECATED(_depr_message_)
Mark a function or variable as deprecated.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
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 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 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.
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.
ADTF adtf_util Namespace - Within adtf this is used as adtf::util or adtf_util and also defined as A_...
Namespace for entire ADTF SDK.
dd::DataDefinition DataDescription
Alias Name for DataDefinition, formally known as DataDescription.
Definition: dd.h:652
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.