Log integer values.
More...
#include <wpi/DataLog.h>
|
static constexpr std::string_view | kDataType = "int64" |
|
◆ IntegerLogEntry() [1/3]
wpi::log::IntegerLogEntry::IntegerLogEntry |
( |
| ) |
|
|
default |
◆ IntegerLogEntry() [2/3]
wpi::log::IntegerLogEntry::IntegerLogEntry |
( |
DataLog & | log, |
|
|
std::string_view | name, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
◆ IntegerLogEntry() [3/3]
wpi::log::IntegerLogEntry::IntegerLogEntry |
( |
DataLog & | log, |
|
|
std::string_view | name, |
|
|
std::string_view | metadata, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
◆ Append()
void wpi::log::IntegerLogEntry::Append |
( |
int64_t | value, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
Appends a record to the log.
- Parameters
-
value | Value to record |
timestamp | Time stamp (may be 0 to indicate now) |
◆ Update()
void wpi::log::IntegerLogEntry::Update |
( |
int64_t | value, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
Updates the last value and appends a record to the log if it has changed.
- Note
- The last value is local to this class instance; using Update() with two instances pointing to the same underlying log entry name will likely result in unexpected results.
- Parameters
-
value | Value to record |
timestamp | Time stamp (may be 0 to indicate now) |
◆ kDataType
std::string_view wpi::log::IntegerLogEntry::kDataType = "int64" |
|
staticconstexpr |
The documentation for this class was generated from the following file: