adtf_file_library  0.13.2
standard_adtf_file_reader.h
Go to the documentation of this file.
1 
17 #ifndef ADTF_FILE_STANDARD_READER
18 #define ADTF_FILE_STANDARD_READER
19 
22 
23 namespace adtf_file
24 {
25 
30 {
31 public:
32  StandardReader() = delete;
33  StandardReader(const ADTFDatFileReader&) = delete;
41  ~StandardReader() = default;
47  [[deprecated("Use the default implementation ADTFDatFileReader directly")]]
48  StandardReader(const std::string& file_name,
49  const Configuration& configuration = {}) : ADTFDatFileReader(StandardTypeDeserializers(),
51  {
52  setConfiguration(configuration);
53  open(file_name, std::make_shared<sample_factory<adtf_file::DefaultSample>>(), std::make_shared<stream_type_factory<adtf_file::DefaultStreamType>>());
54  };
55 };
56 
57 }
58 
59 #endif //_ADTF_FILE_STANDARD_READER_
ADTF File Reader to deserialze and read the content of a ADTF DAT File.
Definition: adtf_file_reader.h:235
void open(const std::string &filename, std::shared_ptr< SampleFactory > sample_factory, std::shared_ptr< StreamTypeFactory > stream_type_factory) override
CTOR for a new Reader.
virtual void setConfiguration(const Configuration &configuration)
Definition: configuration.h:332
Standard Reader class to use the ADTFDatFileReader in default way.
Definition: standard_adtf_file_reader.h:30
StandardReader(const std::string &file_name, const Configuration &configuration={})
CTOR opens a ADTF DAT file with given configuration.
Definition: standard_adtf_file_reader.h:48
~StandardReader()=default
DTOR.
StandardReader(StandardReader &&)=default
CTOR.
Default container with all SampleDeserializer factories provided by the ADTF File Library.
Definition: standard_factories.h:60
Default container with all StreamTypeDeserializer provided by the ADTF File Library.
Definition: standard_factories.h:77
template class for a sample factory to create sample with implementation type SAMPLE_CLASS
Definition: reader.h:120
template class for a streamtype factory to create streamtypes with implementation type STREAM_TYPE_CL...
Definition: reader.h:93
namespace for ADTF File library
Definition: adtf2_adtf_core_media_sample_deserializer.h:25
std::unordered_map< std::string, PropertyValue > Configuration
Configuration class as set of key - property value pairs This configuration is used to adjust the rea...
Definition: configuration.h:143

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