Sails::JSONWriter
class Sails::JSONWriter
The JSONWriter class is responsible for writing telemetry log data to a JSON file.
This class provides a method for writing telemetry log data to a JSON file. The class uses the TelemetryLog object to access the log data and construct the JSON structure.
Summary
Members | Descriptions |
---|---|
| |
| Writes the telemetry log data to a JSON file. |
Members
public
JSONWriter
() = default
public void
write_json_file
(TelemetryLog & log, std::ostream & stream)
Writes the telemetry log data to a JSON file.
This method takes a TelemetryLog object and writes its data to a JSON file. The JSON file includes information such as the date, cycles, and entries.
Parameters
log
The TelemetryLog object containing the telemetry data to write.stream
The log object should be populated with data prior to calling this method.
The filename of the JSON file to write is specified in the constructor of the JSONWriter class.
See also: TelemetryLog
See also: JSONWriter