Skip to content

LogEntry

struct nmeasim::core::log::LogEntry ยท Library API

One sentence of a log, with the time at which a replay sends it.

#include <nmeasim/core/log/log_file.hpp>

Declared in src/core/include/nmeasim/core/log/log_file.hpp (line 42)

Summary

Public data members

Name Description
offset Time from the start of the replay; the first entry of a log is at zero, and offsets never decrease along a log (see parse_log).
sentence The sentence from its $ or ! to the end of the line, surrounding whitespace and line terminator removed, otherwise byte for byte as in the file.
recorded_at The absolute UTC time the line carried (time prefix or TAG block c: parameter), not clamped like offset; empty when the line carried none.

Public data members

offset

std::chrono::milliseconds offset{0}

Time from the start of the replay; the first entry of a log is at zero, and offsets never decrease along a log (see parse_log).

Declared in src/core/include/nmeasim/core/log/log_file.hpp:45

sentence

std::string sentence

The sentence from its $ or ! to the end of the line, surrounding whitespace and line terminator removed, otherwise byte for byte as in the file.

It excludes any time prefix and TAG block.

Declared in src/core/include/nmeasim/core/log/log_file.hpp:49

recorded_at

std::optional<std::chrono::system_clock::time_point> recorded_at

The absolute UTC time the line carried (time prefix or TAG block c: parameter), not clamped like offset; empty when the line carried none.

Declared in src/core/include/nmeasim/core/log/log_file.hpp:52