Add source code.
This commit is contained in:
1 parent
dab19ace02
commit
0b8a7b3cdc
31 files changed
+2809
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class TextTable {
|
||||
public:
|
||||
explicit TextTable(const std::vector<std::string>& headers);
|
||||
|
||||
void addRow(const std::vector<std::string>& cells);
|
||||
std::size_t rowCount() const;
|
||||
std::string render() const;
|
||||
|
||||
private:
|
||||
std::vector<std::string> headers_;
|
||||
std::vector<std::vector<std::string>> rows_;
|
||||
};
|
||||
Reference in new issue
Block a user