34#include <NDEVR/LogStream.h>
35#include <NDEVR/File.h>
39 class AsciiWriteThread;
107#if NDEVR_SUPPORTS_THREADING
116#if NDEVR_SUPPORTS_THREADING
117 AsciiWriteThread* m_write_thread;
123 bool m_only_log_session =
true;
AsciiFileOutputStream(const File &file, bool append)
Constructs an AsciiFileOutputStream targeting the given file.
static void ReadLogFile(LogPtr stream, const File &file)
Reads log messages from an ascii file into a log stream.
void setFile(const File &file, bool append)
Changes the target output file.
void setProgress(uint04, fltp04) final override
Sets progress information.
void copyFile(File new_location)
Copies the current log file to a new location on disk.
virtual ~AsciiFileOutputStream()
Destructor.
void moveFile(File new_location)
Moves the current log file to a new location on disk.
const File & file() const
Returns a reference to the current output file.
void setOnlyLogSession(bool only_log_session)
Sets whether only messages from the current session should be logged.
void addMessages(uint04 id, const Buffer< LogMessage > &messages) final override
Adds multiple log messages to the output file in a batch.
void addMessage(uint04 id, const LogMessage &message) final override
Adds a single log message to the output file.
static void WriteLogFile(LogPtr stream, const File &file)
Writes all messages from a log stream to an ascii file.
The equivelent of std::vector but with a bit more control.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
A class that allows for specific log information to be conveyed to a InfoPipe object including inform...
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
A listener that receives and processes log messages and progress updates from an InfoPipe.
The core String class for the NDEVR API.
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...