preCICE v3.1.2
|
#include <TableWriter.hpp>
Public Member Functions | |
Table () | |
Table (std::ostream &out) | |
template<class... T> | |
void | addColumn (T &&... arg) |
Adds a column of given name, width and float precision. | |
void | printHeader () |
Prints the formatted header. | |
template<class... Ts> | |
void | printRow (Ts... args) |
Prints a line, accepting arbitrary arguments. | |
template<class T , class... Ts> | |
void | printRow (size_t index, T a, Ts... args) |
Prints a ostream convertible type. | |
template<class Rep , class Period , class... Ts> | |
void | printRow (size_t index, std::chrono::duration< Rep, Period > duration, Ts... args) |
Prints a duration as milliseconds. | |
template<class T > | |
void | printRow (size_t index, T a) |
Recursion anchor, prints the last entry and the endl. | |
Public Attributes | |
std::vector< Column > | cols |
std::string | sepChar = "|" |
char | padding = ' ' |
std::ostream & | out = std::cout |
Definition at line 26 of file TableWriter.hpp.
Table::Table | ( | ) |
Definition at line 30 of file TableWriter.cpp.
Table::Table | ( | std::ostream & | out | ) |
Definition at line 35 of file TableWriter.cpp.
|
inline |
Adds a column of given name, width and float precision.
Definition at line 39 of file TableWriter.hpp.
void Table::printHeader | ( | ) |
Prints the formatted header.
Definition at line 40 of file TableWriter.cpp.
|
inline |
Prints a duration as milliseconds.
Definition at line 65 of file TableWriter.hpp.
|
inline |
Recursion anchor, prints the last entry and the endl.
Definition at line 75 of file TableWriter.hpp.
|
inline |
Prints a ostream convertible type.
Definition at line 56 of file TableWriter.hpp.
|
inline |
Prints a line, accepting arbitrary arguments.
Definition at line 49 of file TableWriter.hpp.
std::vector<Column> Table::cols |
Definition at line 28 of file TableWriter.hpp.
std::ostream& Table::out = std::cout |
Definition at line 31 of file TableWriter.hpp.
char Table::padding = ' ' |
Definition at line 30 of file TableWriter.hpp.
std::string Table::sepChar = "|" |
Definition at line 29 of file TableWriter.hpp.