TXTHTraceFileWriter¶
-
class TXTHTraceFileWriter : public osi3::TraceFileWriter¶
Implementation of TraceFileWriter for text format files containing OSI messages.
This class provides functionality to write OSI messages to text format files. It converts protobuf messages to their text representation for human-readable storage.
Note
Thread Safety: Not thread-safe. External synchronization required for concurrent access.
Public Functions
-
~TXTHTraceFileWriter() override¶
Destructor, closes the file if still open.
-
virtual bool Open(const std::filesystem::path &file_path) override¶
Opens a text trace file for writing.
- Parameters:
file_path – Path to the file to be created/opened
- Returns:
true if successful, false otherwise
-
virtual void Close() override¶
Closes the trace file.
-
~TXTHTraceFileWriter() override¶