Template Struct VariableMonitorController::Sink

Nested Relationships

This struct is a nested type of Template Class VariableMonitorController.

Struct Documentation

template<typename format_type>
struct Sink

Define sink for a specific output format.

Public Functions

inline Sink(std::ostream &out, FormatT fmt)

Version for an output stream that already exists.

inline Sink(const std::string &fileName, FormatT fmt)

Version for opening an output stream for the given file.

Sink(Sink&&) = default

Have to move because of unique_ptr.

Public Members

std::string file_name

Output file name.

std::unique_ptr<std::ofstream> file_stream

Output file stream (if we opened one)

std::ostream *os = {nullptr}

Output stream for printing.

FormatT format

Output format object which may have useful members.