Log protobuf serializable objects.
More...
#include <wpi/datalog/DataLog.hpp>
Log protobuf serializable objects.
◆ ProtobufLogEntry() [1/3]
◆ ProtobufLogEntry() [2/3]
◆ ProtobufLogEntry() [3/3]
◆ Append()
Appends a record to the log.
- Parameters
-
| data | Data to record |
| timestamp | Time stamp (may be 0 to indicate now) |
◆ GetLastValue()
Gets the last value.
- Note
- The last value is local to this class instance and updated only with Update(), not Append().
- Returns
- Last value (empty if no last value)
◆ HasLastValue()
Gets whether there is a last value.
- Note
- The last value is local to this class instance and updated only with Update(), not Append().
- Returns
- True if last value exists, false otherwise.
◆ Update()
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
-
| data | Data to record |
| timestamp | Time stamp (may be 0 to indicate now) |
The documentation for this class was generated from the following file: