An ascii table formatter.
std::string m_lineStart
Text to print at the beginning of the line.
std::vector< int > m_colWidths
The widths of each column, not including the separator.
std::string m_rowSep
Text to print between each row.
void addCell(size_t row, size_t col, const std::string &cell)
Add one cell to the table, overwriting if it already exists.
std::string m_lineEnd
Text to print at the end of the line.
std::string m_colSep
Text to print between each column.
std::vector< std::vector< std::vector< std::string > > > m_rows
The table cells.