25 #ifndef _TABLE_ASCIIWRITER_H 26 #define _TABLE_ASCIIWRITER_H 109 template <
typename StreamType,
typename... Args>
167 void addComment(
const std::string& message)
override;
TableWriter implementation for writing ASCII tables to streams.
AsciiWriter & showColumnInfo(bool show)
Sets if the column information will be written to the stream.
AsciiWriter(std::ostream &stream)
Constructs an AsciiWriter which writes to the given stream.
void addComment(const std::string &message) override
Adds a comment to the stream.
AsciiWriter & operator=(AsciiWriter &&)=default
virtual ~AsciiWriter()=default
Destructor.
void append(const Table &table) override
std::vector< size_t > m_column_lengths
Interface for classes writing tables.
static AsciiWriter create(Args &&... args)
Constructs an AsciiWriter which contains an object of type StreamType.
void init(const Table &table) override
AsciiWriter & setCommentIndicator(const std::string &indicator)
Set the comment indicator.
std::unique_ptr< InstOrRefHolder< std::ostream > > m_stream_holder