WPILibC++ 2025.2.1
|
Log array of integer values. More...
#include <wpi/DataLog.h>
Public Member Functions | |
IntegerArrayLogEntry ()=default | |
IntegerArrayLogEntry (DataLog &log, std::string_view name, int64_t timestamp=0) | |
IntegerArrayLogEntry (DataLog &log, std::string_view name, std::string_view metadata, int64_t timestamp=0) | |
void | Append (std::span< const int64_t > arr, int64_t timestamp=0) |
Appends a record to the log. | |
void | Append (std::initializer_list< int64_t > arr, int64_t timestamp=0) |
Appends a record to the log. | |
void | Update (std::span< const int64_t > arr, int64_t timestamp=0) |
Updates the last value and appends a record to the log if it has changed. | |
void | Update (std::initializer_list< int64_t > arr, int64_t timestamp=0) |
Updates the last value and appends a record to the log if it has changed. | |
Public Member Functions inherited from wpi::log::DataLogValueEntryImpl< std::vector< int64_t > > | |
DataLogValueEntryImpl (DataLogValueEntryImpl &&rhs) | |
DataLogValueEntryImpl & | operator= (DataLogValueEntryImpl &&rhs) |
bool | HasLastValue () const |
Gets whether there is a last value. | |
std::optional< std::vector< int64_t > > | GetLastValue () const |
Gets the last value. | |
Public Member Functions inherited from wpi::log::DataLogEntry | |
DataLogEntry (const DataLogEntry &)=delete | |
DataLogEntry & | operator= (const DataLogEntry &)=delete |
DataLogEntry (DataLogEntry &&rhs) | |
DataLogEntry & | operator= (DataLogEntry &&rhs) |
operator bool () const | |
void | SetMetadata (std::string_view metadata, int64_t timestamp=0) |
Updates the metadata for the entry. | |
void | Finish (int64_t timestamp=0) |
Finishes the entry. | |
Static Public Attributes | |
static constexpr const char * | kDataType = "int64[]" |
Additional Inherited Members | |
Protected Member Functions inherited from wpi::log::DataLogValueEntryImpl< std::vector< int64_t > > | |
DataLogValueEntryImpl ()=default | |
DataLogValueEntryImpl (DataLog &log, std::string_view name, std::string_view type, std::string_view metadata={}, int64_t timestamp=0) | |
Protected Member Functions inherited from wpi::log::DataLogEntry | |
DataLogEntry ()=default | |
DataLogEntry (DataLog &log, std::string_view name, std::string_view type, std::string_view metadata={}, int64_t timestamp=0) | |
Protected Attributes inherited from wpi::log::DataLogValueEntryImpl< std::vector< int64_t > > | |
wpi::mutex | m_mutex |
std::optional< std::vector< int64_t > > | m_lastValue |
Protected Attributes inherited from wpi::log::DataLogEntry | |
DataLog * | m_log = nullptr |
int | m_entry = 0 |
Log array of integer values.
|
default |
|
inline |
|
inline |
|
inline |
Appends a record to the log.
arr | Values to record |
timestamp | Time stamp (may be 0 to indicate now) |
|
inline |
Appends a record to the log.
arr | Values to record |
timestamp | Time stamp (may be 0 to indicate now) |
|
inline |
Updates the last value and appends a record to the log if it has changed.
arr | Values to record |
timestamp | Time stamp (may be 0 to indicate now) |
void wpi::log::IntegerArrayLogEntry::Update | ( | std::span< const int64_t > | arr, |
int64_t | timestamp = 0 ) |
Updates the last value and appends a record to the log if it has changed.
arr | Values to record |
timestamp | Time stamp (may be 0 to indicate now) |
|
staticconstexpr |