Class DataLogEntry
java.lang.Object
org.wpilib.datalog.DataLogEntry
- Direct Known Subclasses:
BooleanArrayLogEntry, BooleanLogEntry, DoubleArrayLogEntry, DoubleLogEntry, FloatArrayLogEntry, FloatLogEntry, IntegerArrayLogEntry, IntegerLogEntry, ProtobufLogEntry, RawLogEntry, StringArrayLogEntry, StringLogEntry, StructArrayLogEntry, StructLogEntry
Log entry base class.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataLogEntry(DataLog log, String name, String type) Constructs a data log entry.protectedDataLogEntry(DataLog log, String name, String type, String metadata) Constructs a data log entry.protectedDataLogEntry(DataLog log, String name, String type, String metadata, long timestamp) Constructs a data log entry. -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()Finishes the entry.voidfinish(long timestamp) Finishes the entry.voidsetMetadata(String metadata) Updates the metadata for the entry.voidsetMetadata(String metadata, long timestamp) Updates the metadata for the entry.
-
Field Details
-
m_log
-
m_entry
The data log entry index.
-
-
Constructor Details
-
DataLogEntry
Constructs a data log entry.- Parameters:
log- datalogname- name of the entrytype- Data typemetadata- metadatatimestamp- entry creation timestamp (0=now)
-
DataLogEntry
Constructs a data log entry.- Parameters:
log- datalogname- name of the entrytype- Data typemetadata- metadata
-
DataLogEntry
Constructs a data log entry.- Parameters:
log- datalogname- name of the entrytype- Data type
-
-
Method Details
-
setMetadata
Updates the metadata for the entry.- Parameters:
metadata- New metadata for the entrytimestamp- Time stamp (0 to indicate now)
-
setMetadata
Updates the metadata for the entry.- Parameters:
metadata- New metadata for the entry
-
finish
Finishes the entry.- Parameters:
timestamp- Time stamp (0 to indicate now)
-
finish
Finishes the entry.
-