adtf_file_library  0.13.2
adtf3_media_description_serializer.h
Go to the documentation of this file.
1 
17 #ifndef ADTF_FILE_ADTF3_MEDIA_DESCRIPTION_SERIALIZER
18 #define ADTF_FILE_ADTF3_MEDIA_DESCRIPTION_SERIALIZER
19 
20 #include <memory>
22 
23 namespace adtf_file
24 {
25 namespace adtf3
26 {
27 
37 {
38  public:
42  static constexpr const char* id = "media_description_sample_serialization.serialization.adtf.cid";
43 
44  public:
53 
54  public:
55  std::string getId() const override;
56  void setStreamType(const StreamType& stream_type) override;
57  void serialize(const WriteSample& sample, OutputStream& stream) override;
58 
59  private:
60  class Implementation;
61  std::unique_ptr<Implementation> _implementation;
62 };
63 
72 {
73  public:
77  static constexpr const char* id = "media_description_sample_serialization_ns.serialization.adtf.cid";
78 
79  public:
88 
89  public:
90  std::string getId() const override;
91  void setStreamType(const StreamType& stream_type) override;
92  void serialize(const WriteSample& sample, OutputStream& stream) override;
93 
94  private:
95  class Implementation;
96  std::unique_ptr<Implementation> _implementation;
97 };
98 
99 }
100 }
101 
102 #endif
Interface class for an output stream.
Definition: adtf_file_writer.h:39
Interface class for a sample serializer. Usually the implementaion has a serialization state dependin...
Definition: adtf_file_writer.h:171
Stream Type base class.
Definition: stream_item.h:43
Interface class for samples that are written.
Definition: sample.h:114
DDL based Sample Serializer implementation for ADTF 3 Samples with timestamps of nanoseconds resoluti...
Definition: adtf3_media_description_serializer.h:72
std::string getId() const override
Get the Id of the sample serializer.
void setStreamType(const StreamType &stream_type) override
Set the Stream Type and the serialization state of the serializer.
void serialize(const WriteSample &sample, OutputStream &stream) override
Serializes the sample into the given stream. These samples usually are described by the previous set ...
DDL based Sample Serializer implementation for ADTF 3 Samples with timestamps of microseconds resolut...
Definition: adtf3_media_description_serializer.h:37
std::string getId() const override
Get the Id of the sample serializer.
void setStreamType(const StreamType &stream_type) override
Set the Stream Type and the serialization state of the serializer.
void serialize(const WriteSample &sample, OutputStream &stream) override
Serializes the sample into the given stream. These samples usually are described by the previous set ...
namespace for ADTF File library
Definition: adtf2_adtf_core_media_sample_deserializer.h:25

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