Files
LLS/include/Table.h
T
2026-10-17 03:29:11 -03:00

19 lines
385 B
C++

#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_;
};