15#ifndef TablePrinter_included
16#define TablePrinter_included
50 TablePrinter(std::ostream * output,
const std::string& separator =
"│");
59 void AddColumn(
const std::string& header_name,
int column_width);
82 *out_stream_ << std::left;
84 *out_stream_ << std::right;
87 *out_stream_ << std::setw(column_widths_.at(j_))
92 *out_stream_ <<
"│\n";
98 *out_stream_ << separator_;
106 void PrintHorizontalLine(
int updown = 0);
108 template<
typename T>
void OutputDecimalNumber(T input);
110 std::ostream * out_stream_;
111 std::vector<std::string> column_headers_;
112 std::vector<int> column_widths_;
113 std::string separator_;
118 int table_width_ = -10;
119 bool flush_left_ =
false;
124#include <TablePrinter.tpp>
TablePrinter & operator<<(endl input)
int get_table_width() const
void AddColumn(const std::string &header_name, int column_width)
Add a column to our table.
int get_num_columns() const
TablePrinter & operator<<(T input)
TablePrinter(std::ostream *output, const std::string &separator="│")
void set_separator(const std::string &separator)