WPILibC++ 2025.1.1
|
#include <wpi/DataLog.h>
Public Member Functions | |
DataLogValueEntryImpl (DataLogValueEntryImpl &&rhs) | |
DataLogValueEntryImpl & | operator= (DataLogValueEntryImpl &&rhs) |
bool | HasLastValue () const |
Gets whether there is a last value. | |
std::optional< 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. | |
Protected Member Functions | |
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 | |
wpi::mutex | m_mutex |
std::optional< T > | m_lastValue |
Protected Attributes inherited from wpi::log::DataLogEntry | |
DataLog * | m_log = nullptr |
int | m_entry = 0 |
|
protecteddefault |
|
inlineprotected |
|
inline |
|
inline |
Gets the last value.
|
inline |
Gets whether there is a last value.
|
inline |
|
protected |
|
mutableprotected |