28#include <unordered_set>
44 void open(
const std::string& file_name,
45 std::shared_ptr<adtf_file::SampleFactory> sample_factory,
46 std::shared_ptr<adtf_file::StreamTypeFactory> stream_type_factory)
override;
50 std::vector<adtf_file::Stream>
getStreams()
const override;
58 std::shared_ptr<const adtf_file::StreamType>
getStreamTypeBefore(uint64_t item_index, uint16_t stream_id)
override;
59 void seekTo(uint64_t item_index)
override;
64 std::string new_name{};
69 std::shared_ptr<Reader> _reader{};
70 std::vector<adtf_file::Stream> _streams{};
72 void setupReader(
const std::string& file_name,
73 std::shared_ptr<adtf_file::SampleFactory> sample_factory,
74 std::shared_ptr<adtf_file::StreamTypeFactory> stream_type_factory);
75 std::vector<RegexRule> parseRegexRules()
const;
76 void renameStreams(std::vector<RegexRule> regex_rules);
class to create or read a file item. This file item is either a sample, streamtype or trigger.
Definition reader.h:172
Default Reader factory implementation for readers using a standard default CTOR.
Definition reader.h:367
Interface for seekable Reader, where the file position can be adapted.
Definition reader.h:288
std::optional< double > getProgress() const override
Get the Progress, a relative file position between 0.0 and 1.0.
void open(const std::string &file_name, std::shared_ptr< adtf_file::SampleFactory > sample_factory, std::shared_ptr< adtf_file::StreamTypeFactory > stream_type_factory) override
opens a file by the given filename. The given factories must be used to create samples and streamtype...
std::vector< adtf_file::Extension > getExtensions() const override
Get the Extensions if any.
adtf_file::FileItem getNextItem() override
StreamRenamingReader()
CTOR.
uint64_t getItemIndexForTimeStamp(std::chrono::nanoseconds time_stamp) override
std::vector< adtf_file::Stream > getStreams() const override
Get the Streams.
std::shared_ptr< const adtf_file::StreamType > getStreamTypeBefore(uint64_t item_index, uint16_t stream_id) override
std::string getReaderIdentifier() const override
Get the Reader Identifier of the Reader.
uint32_t getFileVersion() const override
std::optional< uint64_t > getItemCount() const override
Get the Item Count. This gets the overall count of all items (samples, stream types and triggers) of ...
uint64_t getItemIndexForStreamItemIndex(uint16_t stream_id, uint64_t stream_item_index) override
void seekTo(uint64_t item_index) override
std::string getDescription() const override
namespace for ADTF DAT Processing library.
Definition ddl_helpers.h:38
adtf_file::ReaderFactoryImplementation< StreamRenamingReader > StreamRenamingReaderFactory
Default reader factory implementation for the StreamRenamingReader.
Definition stream_renaming_reader.h:82