Class for setup the table layout.
More...
#include <TableLayout.hpp>
|
enum | Alignment { right
, left
, center
} |
| Type of aligment for a column.
|
|
enum | MarginValue : integer { tiny = 0
, small = 1
, medium = 2
, large = 3
} |
| Space to apply between all data and border.
|
|
enum | Section { header
, values
} |
| Enumeration for table sections.
|
|
Class for setup the table layout.
Definition at line 31 of file TableLayout.hpp.
◆ TableLayout() [1/2]
geos::TableLayout::TableLayout |
( |
std::vector< string > const & |
columnNames, |
|
|
string const & |
title = "" |
|
) |
| |
Construct a new Table object, all values in the table are centered by default.
- Parameters
-
columnNames | The names of the columns |
title | The table name |
◆ TableLayout() [2/2]
geos::TableLayout::TableLayout |
( |
std::vector< ColumnParam > const & |
columnParameters, |
|
|
string const & |
title = "" |
|
) |
| |
Construct a new Table object by specifying value alignment and optionally their displays based to log levels level.
- Parameters
-
columnParameters | List of structures to set up each colum parameters. |
title | The table name |
◆ getBorderMargin()
integer const& geos::TableLayout::getBorderMargin |
( |
| ) |
const |
- Returns
- The border margin, number of spaces at both left and right table sides
◆ getColumnMargin()
integer const& geos::TableLayout::getColumnMargin |
( |
| ) |
const |
- Returns
- The column margin, numbers of spaces separating both left and right side from each column content
◆ getColumns()
std::vector< Column > const& geos::TableLayout::getColumns |
( |
| ) |
const |
- Returns
- The columns vector
◆ getMarginTitle()
integer const& geos::TableLayout::getMarginTitle |
( |
| ) |
const |
◆ getTitle()
◆ setMargin()
void geos::TableLayout::setMargin |
( |
MarginValue |
marginValue | ) |
|
Set the minimal margin width between cell content and borders.
- Parameters
-
marginValue | The margin value |
The documentation for this class was generated from the following file: