20 #ifndef GEOS_COMMON_FORMAT_TABLE_TABLELAYOUT_HPP
21 #define GEOS_COMMON_FORMAT_TABLE_TABLELAYOUT_HPP
107 TableLayout( std::vector< string >
const & columnNames,
string const & title =
"" );
115 TableLayout( std::vector< ColumnParam >
const & columnParameters,
string const & title =
"" );
150 std::vector< Column > m_columns;
Class for setup the table layout.
integer const & getMarginTitle() const
integer const & getColumnMargin() const
Alignment
Type of aligment for a column.
integer const & getBorderMargin() const
TableLayout(std::vector< string > const &columnNames, string const &title="")
Construct a new Table object, all values in the table are centered by default.
string_view getTitle() const
void setMargin(MarginValue marginValue)
Set the minimal margin width between cell content and borders.
std::vector< Column > const & getColumns() const
Section
Enumeration for table sections.
MarginValue
Space to apply between all data and border.
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...
std::string string
String type.
std::int32_t integer
Signed integer type.
std::string_view string_view
String type.
string m_maxStringSize
The largest string in the column.
ColumnParam m_parameter
Structure who contains parameters for a column.
std::vector< string > m_columnValues
A vector containing all column values.
Structure to set up each colum parameters.
bool enabled
A boolean to display a colummn.
string columnName
Name for a column.
std::vector< string > splitColumnNameLines
Vector containing substring column name delimited by "\n".
Alignment alignment
Alignment for a column. By default aligned to the right side.
ColumnParam(std::string const &name, Alignment align, bool display)
Construct a ColumnParam object with the specified name, alignment, and display flag.
ColumnParam(std::string const &name, Alignment align)
Construct a ColumnParam object with the specified name and alignment.