Package edu.wpi.first.util.datalog
Class RawLogEntry
java.lang.Object
edu.wpi.first.util.datalog.DataLogEntry
edu.wpi.first.util.datalog.RawLogEntry
public class RawLogEntry extends DataLogEntry
Log raw byte array values.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RawLogEntry(DataLog log, String name)
Constructs a raw log entry.RawLogEntry(DataLog log, String name, long timestamp)
Constructs a raw log entry.RawLogEntry(DataLog log, String name, String metadata)
Constructs a raw log entry.RawLogEntry(DataLog log, String name, String metadata, long timestamp)
Constructs a raw log entry.RawLogEntry(DataLog log, String name, String metadata, String type)
Constructs a raw log entry.RawLogEntry(DataLog log, String name, String metadata, String type, long timestamp)
Constructs a raw log entry. -
Method Summary
Modifier and Type Method Description void
append(byte[] value)
Appends a record to the log.void
append(byte[] value, int start, int len)
Appends a record to the log.void
append(byte[] value, int start, int len, long timestamp)
Appends a record to the log.void
append(byte[] value, long timestamp)
Appends a record to the log.void
append(ByteBuffer value)
Appends a record to the log.void
append(ByteBuffer value, int start, int len)
Appends a record to the log.void
append(ByteBuffer value, int start, int len, long timestamp)
Appends a record to the log.void
append(ByteBuffer value, long timestamp)
Appends a record to the log.Methods inherited from class edu.wpi.first.util.datalog.DataLogEntry
finish, finish, setMetadata, setMetadata
-
Field Details
-
kDataType
The data type for raw values.- See Also:
- Constant Field Values
-
-
Constructor Details
-
RawLogEntry
Constructs a raw log entry.- Parameters:
log
- datalogname
- name of the entrymetadata
- metadatatype
- Data typetimestamp
- entry creation timestamp (0=now)
-
RawLogEntry
Constructs a raw log entry.- Parameters:
log
- datalogname
- name of the entrymetadata
- metadatatype
- Data type
-
RawLogEntry
Constructs a raw log entry.- Parameters:
log
- datalogname
- name of the entrymetadata
- metadatatimestamp
- entry creation timestamp (0=now)
-
RawLogEntry
Constructs a raw log entry.- Parameters:
log
- datalogname
- name of the entrymetadata
- metadata
-
RawLogEntry
Constructs a raw log entry.- Parameters:
log
- datalogname
- name of the entrytimestamp
- entry creation timestamp (0=now)
-
RawLogEntry
Constructs a raw log entry.- Parameters:
log
- datalogname
- name of the entry
-
-
Method Details
-
append
Appends a record to the log.- Parameters:
value
- Value to record; will send entire array contentstimestamp
- Time stamp (0 to indicate now)
-
append
Appends a record to the log.- Parameters:
value
- Value to record; will send entire array contents
-
append
Appends a record to the log.- Parameters:
value
- Data to recordstart
- Start position of data (in byte array)len
- Length of data (must be less than or equal to value.length - offset)timestamp
- Time stamp (0 to indicate now)
-
append
Appends a record to the log.- Parameters:
value
- Data to recordstart
- Start position of data (in byte array)len
- Length of data (must be less than or equal to value.length - offset)
-
append
Appends a record to the log.- Parameters:
value
- Data to record; will send from value.position() to value.capacity()timestamp
- Time stamp (0 to indicate now)
-
append
Appends a record to the log.- Parameters:
value
- Data to record; will send from value.position() to value.capacity()
-
append
Appends a record to the log.- Parameters:
value
- Data to recordstart
- Start position of data (in value buffer)len
- Length of data (must be less than or equal to value.length - offset)timestamp
- Time stamp (0 to indicate now)
-
append
Appends a record to the log.- Parameters:
value
- Data to recordstart
- Start position of data (in value buffer)len
- Length of data (must be less than or equal to value.length - offset)
-