|
| | StructLogEntry ()=default |
| |
| | StructLogEntry (DataLog &log, std::string_view name, I... info, int64_t timestamp=0) |
| |
| | StructLogEntry (DataLog &log, std::string_view name, std::string_view metadata, I... info, int64_t timestamp=0) |
| |
| | StructLogEntry (StructLogEntry &&rhs) |
| |
| StructLogEntry & | operator= (StructLogEntry &&rhs) |
| |
| void | Append (const T &data, int64_t timestamp=0) |
| | Appends a record to the log.
|
| |
| void | Update (const T &data, int64_t timestamp=0) |
| | Updates the last value and appends a record to the log if it has changed.
|
| |
| bool | HasLastValue () const |
| | Gets whether there is a last value.
|
| |
| std::optional< T > | GetLastValue () const |
| | Gets the last value.
|
| |
| | 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.
|
| |
template<typename T, typename... I>
requires StructSerializable<T, I...>
class wpi::log::StructLogEntry< T, I >
Log raw struct serializable objects.