COGS
Computer Graphics Structures library
Table.h
1 #ifndef COGS_TABLE_H
2 #define COGS_TABLE_H
3 #include <COGS/Grid.h>
4 
5 namespace cogs
6 {
7  class COGS_API Table : public cogs::Grid<std::string>
8  {
9  public:
10  Table(size_t columns, size_t rows);
11  Table(size_t rows, const std::vector<std::string> &labels);
12  void SetRow(size_t row_id, const std::vector<std::string> &cells);
13  std::string ToString() const;
14 
15  private:
16  bool has_labels{ false };
17  std::string GetSeparator(const std::vector<size_t> &cell_widths) const;
18  std::string GetRow(size_t row_id, const std::vector<size_t> &cell_widths) const;
19  };
20 }
21 #endif /* !COGS_TABLE_H */
Namespace of "Computer Graphic Structures" library, which implement many core classes and structures...
Definition: AabbHierarchy.h:8
Organizational structure of values in a 2 dimensional grid.
Definition: Grid.h:17