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