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