Template Struct VariableMonitorController::Sink

Nested Relationships

This struct is a nested type of Template Class VariableMonitorController.

Struct Documentation

template<Format format_type, Layout layout_type>
struct Sink

Define sink for a specific output format and layout.

Public Functions

inline Sink(std::ostream &out, const std::string &delimiter)

Version for an output stream that already exists.

inline Sink(const std::string &fileName, const std::string &delimiter)

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.

std::string delim

Delimiter for CSV output.

Public Static Attributes

static Format format = format_type

Output format.

static Layout layout = layout_type

Output layout.