ADTF File Library
Loading...
Searching...
No Matches
adtf3_sample_copy_serializer.h
Go to the documentation of this file.
1
16
17#ifndef ADTF_FILE_ADTF3_SAMPLE_COPY_SERIALIZER
18#define ADTF_FILE_ADTF3_SAMPLE_COPY_SERIALIZER
19
21
22namespace adtf_file
23{
24namespace adtf3
25{
26
34{
35 public:
39 static constexpr const char* id = "sample_copy_serialization.serialization.adtf.cid";
40
41 public:
42 std::string getId() const override;
43 void setStreamType(const StreamType& stream_type) override;
44 void serialize(const WriteSample& sample, OutputStream& stream) override;
45};
46
53{
54 public:
58 static constexpr const char* id = "sample_copy_serialization_ns.serialization.adtf.cid";
59
60 public:
61 std::string getId() const override;
62 void setStreamType(const StreamType& stream_type) override;
63 void serialize(const WriteSample& sample, OutputStream& stream) override;
64};
65
66}
67}
68
69#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
Standard Sample Copy Serializer implementation for ADTF 3 Samples with timestamps of nanoseconds reso...
Definition adtf3_sample_copy_serializer.h:53
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.
Standard Sample Copy Serializer implementation for ADTF 3 Samples with timestamps of microseconds res...
Definition adtf3_sample_copy_serializer.h:34
void setStreamType(const StreamType &stream_type) override
Set the Stream Type and the serialization state of the serializer.
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 ...
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