ADTF File Library
Loading...
Searching...
No Matches
adtf3_media_description_serializer.h
Go to the documentation of this file.
1
16
17#ifndef ADTF_FILE_ADTF3_MEDIA_DESCRIPTION_SERIALIZER
18#define ADTF_FILE_ADTF3_MEDIA_DESCRIPTION_SERIALIZER
19
20#include <memory>
22
23namespace adtf_file
24{
25namespace 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:116
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 ...
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 support of ADTF 3 files
Definition adtf3_media_description_deserializer.h:28
namespace for ADTF File library
Definition adtf2_adtf_core_media_sample_deserializer.h:25