adtf_file_library  0.13.2
standard_factories.h
Go to the documentation of this file.
1 
17 #ifndef ADTF_FILE_STANDARD_FACTORIES
18 #define ADTF_FILE_STANDARD_FACTORIES
19 
21 
28 
34 
35 #include <adtf_file/object.h>
36 
37 namespace adtf_file
38 {
39 
44 {
45  public:
47  {
53  }
54 };
55 
60 {
61  public:
63  {
70  }
71 };
72 
77 {
78  public:
80  {
81  add(std::make_shared<adtf3::StreamTypeDeserializer>());
82  add(std::make_shared<adtf2::AdtfCoreMediaTypeDeserializer>());
83  add(std::make_shared<adtf2::AdtfCoreMediaTypeVideoDeserializer>());
84  add(std::make_shared<adtf2::AdtfCoreMediaTypeAudioDeserializer>());
85  add(std::make_shared<adtf2::IndexedDataDescriptionMediaTypeDeserializer>());
86  }
87 };
88 
89 namespace adtf3
90 {
91 
96 {
97  public:
99  {
100  add(std::make_shared<adtf3::StreamTypeSerializer>());
101  }
102 };
103 
104 }
105 
106 namespace adtf2
107 {
112 {
113  public:
118  {
119  add(std::make_shared<adtf2::AdtfCoreMediaTypeSerializer>());
120  add(std::make_shared<adtf2::AdtfCoreMediaTypeVideoSerializer>());
121  add(std::make_shared<adtf2::AdtfCoreMediaTypeAudioSerializer>());
122  }
123 };
124 
125 }
126 
130 inline void add_standard_objects()
131 {
138 
144 
145  getObjects().push_back(std::make_shared<adtf3::StreamTypeDeserializer>());
146  getObjects().push_back(std::make_shared<adtf2::AdtfCoreMediaTypeDeserializer>());
147  getObjects().push_back(std::make_shared<adtf2::AdtfCoreMediaTypeVideoDeserializer>());
148  getObjects().push_back(std::make_shared<adtf2::AdtfCoreMediaTypeAudioDeserializer>());
149  getObjects().push_back(std::make_shared<adtf2::IndexedDataDescriptionMediaTypeDeserializer>());
150 
151  getObjects().push_back(std::make_shared<adtf3::StreamTypeSerializer>());
152  getObjects().push_back(std::make_shared<adtf2::AdtfCoreMediaTypeSerializer>());
153  getObjects().push_back(std::make_shared<adtf2::AdtfCoreMediaTypeVideoSerializer>());
154  getObjects().push_back(std::make_shared<adtf2::AdtfCoreMediaTypeAudioSerializer>());
155 }
156 
157 }
158 
159 #endif
container class for SampleDeserializerFactory
Definition: adtf_file_reader.h:198
SampleDeserializerFactories & add(const std::shared_ptr< SampleDeserializerFactory > &factory)
Adds a deserializer factory implemention to the container.
Definition: adtf_file_reader.h:205
Container class for SampleSerializerFactory.
Definition: adtf_file_writer.h:233
void add(const std::shared_ptr< SampleSerializerFactory > &serializer_factory)
Adds a SampleSerializerFactory instance to the container.
Definition: adtf_file_writer.h:240
Default container with all SampleDeserializer factories provided by the ADTF File Library.
Definition: standard_factories.h:60
Default container with all SampleSerializer factories provided by the ADTF File Library.
Definition: standard_factories.h:44
Default container with all StreamTypeDeserializer provided by the ADTF File Library.
Definition: standard_factories.h:77
container class for StreamTypeDeserializers
Definition: adtf_file_reader.h:101
StreamTypeDeserializers & add(const std::shared_ptr< StreamTypeDeserializer > &deserializer)
Adds a deserializer implemention to the container.
Definition: adtf_file_reader.h:113
Container class for StreamTypeSerializer.
Definition: adtf_file_writer.h:107
void add(const std::shared_ptr< StreamTypeSerializer > &serializer)
Adds a StreamTypeSerializer instance to the container.
Definition: adtf_file_writer.h:114
Default container with all ADTF 2 StreamTypeSerializer provided by the ADTF File Library.
Definition: standard_factories.h:112
StandardTypeSerializers()
CTOR.
Definition: standard_factories.h:117
Default container with all ADTF 3 StreamTypeSerializer provided by the ADTF File Library.
Definition: standard_factories.h:96
default implementation template for a SampleDeserializerFactory creating
Definition: adtf_file_reader.h:180
default implementation template for SampleSerializerFactory to create an instance of the serialzer ty...
Definition: adtf_file_writer.h:216
namespace for ADTF File library
Definition: adtf2_adtf_core_media_sample_deserializer.h:25
Objects & getObjects()
Get the objects singleton of the library.
void add_standard_objects()
Adds all default implementation objects provided by the ADTF File Library.
Definition: standard_factories.h:130

Copyright © CARIAD SE.
Generated on Mon Jun 10 2024 by doxygen 1.9.1
GIT Commit Hash: eb3af397a6b49ad6fcad9a60d8277d909b458b48