adtf_file_library  0.13.2
adtf2_adtf_core_media_sample_serializer.h
Go to the documentation of this file.
1 
17 #ifndef ADTF_FILE_ADTF2_ADTF_CORE_MEDIA_SAMPLE_SERIALIZER
18 #define ADTF_FILE_ADTF2_ADTF_CORE_MEDIA_SAMPLE_SERIALIZER
19 
20 #include <memory>
22 
23 namespace adtf_file
24 {
25 
26 namespace adtf2
27 {
28 
33 {
34  public:
38  static constexpr const char* id = "adtf.core.media_sample.adtf2_support.serialization.adtf.cid";
39 
40  public:
49 
50  public:
51  std::string getId() const override;
52  void setStreamType(const StreamType& stream_type) override;
53  void serialize(const WriteSample& sample, OutputStream& stream) override;
54 
55  private:
56  class Implementation;
57  std::unique_ptr<Implementation> _implementation;
58 };
59 
60 
61 }
62 }
63 
64 #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
SampleSerializer for ADTF 2 Media Samples.
Definition: adtf2_adtf_core_media_sample_serializer.h:33
std::string getId() const override
Get the Id of the sample 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 ...
void setStreamType(const StreamType &stream_type) override
Set the Stream Type and the serialization state of the serializer.
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