adtf_file_library
0.13.1
|
#include <multiplexer.h>
Public Member Functions | |
OffsetReaderWrapper (const std::shared_ptr< Reader > original_reader, std::chrono::nanoseconds offset, std::chrono::nanoseconds start_offset, std::chrono::nanoseconds end_offset) | |
std::string | getReaderIdentifier () const override |
Get the Reader Identifier of the Reader. More... | |
uint32_t | getFileVersion () const override |
std::string | getDescription () const override |
void | open (const std::string &filename, 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 streamtypes for the getNextItem call More... | |
void | setConfiguration (const adtf_file::Configuration &configuration) override |
const adtf_file::Configuration & | getConfiguration () const override |
std::vector< adtf_file::Extension > | getExtensions () const override |
Get the Extensions if any. More... | |
std::vector< adtf_file::Stream > | getStreams () const override |
Get the Streams. More... | |
adtf_file::FileItem | getNextItem () 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 all streams. More... | |
std::optional< double > | getProgress () const override |
Get the Progress, a relative file position between 0.0 and 1.0. More... | |
Public Member Functions inherited from adtf_file::Configurable | |
virtual | ~Configurable ()=default |
DTOR. | |
Helper wrapper that optionally applies a timestamp offset and limits items to a given time range.
adtfdat_processing::OffsetReaderWrapper::OffsetReaderWrapper | ( | const std::shared_ptr< Reader > | original_reader, |
std::chrono::nanoseconds | offset, | ||
std::chrono::nanoseconds | start_offset, | ||
std::chrono::nanoseconds | end_offset | ||
) |
Initializes a new wrapper
[in] | original_reader | The reader that does the heavy lifting. |
[in] | offset | The offset that is added to all timestamps. |
[in] | start_offset | Items before this (without the offset applied) will be skipped. |
[in] | end_offset | Items after this will be dropped. |
|
overridevirtual |
Reimplemented from adtf_file::Configurable.
|
overridevirtual |
Reimplemented from adtf_file::Reader.
|
overridevirtual |
Get the Extensions if any.
Reimplemented from adtf_file::Reader.
|
overridevirtual |
The file version with respect to ADTF DAT Format. When implementing a reader yourself
ifhd::v201_v301::version_id
if you do not explicitly create trigger items.ifhd::v500::version_id
otherwise. Reimplemented from adtf_file::Reader.
|
overridevirtual |
Get the Item Count. This gets the overall count of all items (samples, stream types and triggers) of all streams.
Reimplemented from adtf_file::Reader.
|
overridevirtual |
Returns the next item of the file and increase the item index to the next one. These can be samples, streamtypes or trigger.
exceptions::EndOfFile | if end of file was reached |
std::exception | based exception for any other implementation dependent case to identify error on getNextItem call |
Implements adtf_file::Reader.
|
overridevirtual |
Get the Progress, a relative file position between 0.0 and 1.0.
Reimplemented from adtf_file::Reader.
|
overridevirtual |
|
overridevirtual |
Get the Streams.
Reimplemented from adtf_file::Reader.
|
overridevirtual |
opens a file by the given filename. The given factories must be used to create samples and streamtypes for the getNextItem call
filename | The file to open |
sample_factory | The sample factory to create samples for the getNextItem call. |
stream_type_factory | The stream type factory to create streamtype for the getNextItem call. |
std::exception | based exception for any other implementation dependent case to identify error on open call |
Implements adtf_file::Reader.
|
overridevirtual |
Sets the configuration to be used by the object during processing.
[in] | configuration | The configuration. |
Reimplemented from adtf_file::Configurable.