Reader to deserialize data written by the EventLogWriter.
More...
#include <event_log_reader.h>
Reader to deserialize data written by the EventLogWriter.
◆ EventLogReader()
farm_ng::EventLogReader::EventLogReader |
( |
std::filesystem::path const & |
log_path | ) |
|
|
explicit |
Open's log file to read.
Throws runtime-error if files could not be opened or if logfile does not contain a valid header.
◆ ~EventLogReader()
farm_ng::EventLogReader::~EventLogReader |
( |
| ) |
|
|
virtual |
◆ getIndex()
auto farm_ng::EventLogReader::getIndex |
( |
| ) |
|
◆ getPath()
auto farm_ng::EventLogReader::getPath |
( |
| ) |
const |
Returns the path including the fileaname.
◆ readNextEvent()
auto farm_ng::EventLogReader::readNextEvent |
( |
std::string * |
payload = nullptr | ) |
|
◆ reset()
void farm_ng::EventLogReader::reset |
( |
| ) |
|
Reset the writer to the beginning of the file.
The documentation for this class was generated from the following files: