adtf_file_library  0.13.2
substream_utilities.h
Go to the documentation of this file.
1 
17 #pragma once
18 
19 #include <adtf_file/stream_type.h>
20 #include <unordered_map>
21 #include <string>
22 #include <cstdint>
23 #include <memory>
24 
25 namespace adtf_file
26 {
27 namespace adtf3
28 {
29 
34 {
35  uint32_t id;
36  std::string stream_meta_type_name;
37  std::unordered_map<std::string, std::pair<std::string, std::string>> stream_type_properties;
38 
42  std::shared_ptr<StreamType> createStreamType() const;
43 };
44 
50 std::unordered_map<std::string, SubstreamProperties> getSubstreams(const PropertyStreamType& type);
51 
58 SubstreamProperties getSubstreamProperties(const PropertyStreamType& type, const std::string& substream);
59 
64 {
65  public:
70 
76  void addSubstream(const std::string& name, const SubstreamProperties& properties);
77 };
78 
79 }
80 }
Default stream type implementation.
Definition: stream_type.h:69
The default interface class for stream types.
Definition: stream_type.h:32
Definition: substream_utilities.h:64
void addSubstream(const std::string &name, const SubstreamProperties &properties)
SubstreamProperties getSubstreamProperties(const PropertyStreamType &type, const std::string &substream)
std::unordered_map< std::string, SubstreamProperties > getSubstreams(const PropertyStreamType &type)
namespace for ADTF File library
Definition: adtf2_adtf_core_media_sample_deserializer.h:25
Definition: substream_utilities.h:34
std::unordered_map< std::string, std::pair< std::string, std::string > > stream_type_properties
all properties of the stream type
Definition: substream_utilities.h:37
std::string stream_meta_type_name
the name of the stream meta type
Definition: substream_utilities.h:36
std::shared_ptr< StreamType > createStreamType() const
uint32_t id
substream id
Definition: substream_utilities.h:35

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