20 lines
491 B
C
20 lines
491 B
C
|
#ifndef RHUBARB_LIP_SYNC_TABLEPRINTER_H
|
||
|
#define RHUBARB_LIP_SYNC_TABLEPRINTER_H
|
||
|
|
||
|
|
||
|
#include <initializer_list>
|
||
|
#include <ostream>
|
||
|
#include <vector>
|
||
|
|
||
|
class TablePrinter {
|
||
|
public:
|
||
|
TablePrinter(std::ostream* stream, std::initializer_list<int> columnWidths, int columnSpacing = 2);
|
||
|
void printRow(std::initializer_list<std::string> columns) const;
|
||
|
private:
|
||
|
std::ostream* const stream;
|
||
|
const std::vector<int> columnWidths;
|
||
|
const int columnSpacing;
|
||
|
};
|
||
|
|
||
|
#endif //RHUBARB_LIP_SYNC_TABLEPRINTER_H
|