Log double values.
More...
#include <wpi/DataLog.h>
|
static constexpr std::string_view | kDataType = "double" |
|
◆ DoubleLogEntry() [1/3]
wpi::log::DoubleLogEntry::DoubleLogEntry |
( |
| ) |
|
|
default |
◆ DoubleLogEntry() [2/3]
wpi::log::DoubleLogEntry::DoubleLogEntry |
( |
DataLog & | log, |
|
|
std::string_view | name, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
◆ DoubleLogEntry() [3/3]
wpi::log::DoubleLogEntry::DoubleLogEntry |
( |
DataLog & | log, |
|
|
std::string_view | name, |
|
|
std::string_view | metadata, |
|
|
int64_t | timestamp = 0 ) |
|
inline |
◆ Append()
void wpi::log::DoubleLogEntry::Append |
( |
double | 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::DoubleLogEntry::Update |
( |
double | 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::DoubleLogEntry::kDataType = "double" |
|
staticconstexpr |
The documentation for this class was generated from the following file: