Data log reader (reads logs written by the DataLog class).
More...
#include <wpi/DataLogReader.h>
Data log reader (reads logs written by the DataLog class).
◆ iterator
◆ DataLogReader()
wpi::log::DataLogReader::DataLogReader |
( |
std::unique_ptr< MemoryBuffer > |
buffer | ) |
|
|
explicit |
Constructs from a memory buffer.
◆ begin()
iterator wpi::log::DataLogReader::begin |
( |
| ) |
const |
Returns iterator to first record.
◆ end()
iterator wpi::log::DataLogReader::end |
( |
| ) |
const |
|
inline |
◆ GetBufferIdentifier()
Gets the buffer identifier, typically the filename.
- Returns
- Identifier string
◆ GetExtraHeader()
Gets the extra header data.
- Returns
- Extra header data
◆ GetVersion()
uint16_t wpi::log::DataLogReader::GetVersion |
( |
| ) |
const |
Gets the data log version.
Returns 0 if data log is invalid.
- Returns
- Version number; most significant byte is major, least significant is minor (so version 1.0 will be 0x0100)
◆ IsValid()
bool wpi::log::DataLogReader::IsValid |
( |
| ) |
const |
Returns true if the data log is valid (e.g.
has a valid header).
◆ operator bool()
wpi::log::DataLogReader::operator bool |
( |
| ) |
const |
|
inlineexplicit |
Returns true if the data log is valid (e.g.
has a valid header).
◆ DataLogIterator
The documentation for this class was generated from the following file: