STORMM Source Documentation
Loading...
Searching...
No Matches
tabulation.h
1// -*-c++-*-
2#ifndef STORMM_TABULATION_H
3#define STORMM_TABULATION_H
4
5#include <string>
6#include <vector>
7#include "copyright.h"
8#include "Math/sorting_enumerators.h"
9#include "parsing_enumerators.h"
10#include "polynumeric.h"
11
12namespace stormm {
13namespace parse {
14
15using stmath::SortDirection;
16
26void tableHorizontalRule(const std::vector<int> &column_widths, BorderFormat borders,
27 int indentation, int column_spacing, bool have_categories);
28
38void tableHeader(const std::vector<std::vector<std::string>> &heading_words,
39 const std::vector<int> &column_widths, BorderFormat borders, int indentation,
40 int column_spacing, bool have_categories);
41
65void printTable(const std::vector<std::string> &headings,
66 const std::vector<std::string> &categories,
67 const std::vector<std::vector<PolyNumeric>> &column_data,
68 const std::vector<NumberFormat> &column_formats,
69 const std::string &column_sort = std::string(""),
70 BorderFormat borders = BorderFormat::LIGHT, int indentation = 1,
71 int column_spacing = 2, int max_decimal_places_in = 4, double precision = 1.0e6,
72 SortDirection sorting_direction = SortDirection::AUTOMATIC);
73
74} // namspace parse
75} // namespace stormm
76
77#endif