WPILibC++ 2023.4.3
|
Log array of string values. More...
#include <wpi/DataLog.h>
Public Member Functions | |
StringArrayLogEntry ()=default | |
StringArrayLogEntry (DataLog &log, std::string_view name, int64_t timestamp=0) | |
StringArrayLogEntry (DataLog &log, std::string_view name, std::string_view metadata, int64_t timestamp=0) | |
void | Append (std::span< const std::string > arr, int64_t timestamp=0) |
Appends a record to the log. More... | |
void | Append (std::span< const std::string_view > arr, int64_t timestamp=0) |
Appends a record to the log. More... | |
void | Append (std::initializer_list< std::string_view > arr, int64_t timestamp=0) |
Appends a record to the log. More... | |
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. More... | |
void | Finish (int64_t timestamp=0) |
Finishes the entry. More... | |
Static Public Attributes | |
static constexpr const char * | kDataType = "string[]" |
Additional Inherited Members | |
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::DataLogEntry | |
DataLog * | m_log = nullptr |
int | m_entry = 0 |
Log array of string 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 |
Appends a record to the log.
arr | Values to record |
timestamp | Time stamp (may be 0 to indicate now) |
|
staticconstexpr |