Shift things around
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled

This commit is contained in:
Your Name
2025-05-17 10:18:25 +12:00
parent 9eb9707c2e
commit 93e563948f
61 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# ifndef TABLEPRINT_HPP
# define TABLEPRINT_HPP
#include <vector>
#include <string>
#include <iostream>
// tableprint is a class that prints a table of strings.
// formatted to look nice with colored headings and rows.
// converts :tick: to a green tick and :cross: to a red cross.
// assumes the first row is the header.
class tableprint {
public:
tableprint(const std::string title = "", bool compact = false);
~tableprint();
void add_row(const std::vector<std::string>& row);
void print();
void set_title(const std::string title);
private:
std::vector<std::vector<std::string>> rows;
std::string title;
bool mCompact;
};
# endif