Class for setup the table layout.  
 More...
#include <TableLayout.hpp>
 | 
| class   | Cell | 
|   | Represents a cell in a table with ownership of its text data.  More...
  | 
|   | 
| class   | CellLayout | 
|   | View on cell data with information to display it in a table (content, type, alignment, ...).  More...
  | 
|   | 
| class   | Column | 
|   | Class representing a column in a table layout.  More...
  | 
|   | 
| struct   | ColumnAlignement | 
|   | Structure to set up values m_alignment for each colum.  More...
  | 
|   | 
| class   | DeepFirstIterator | 
|   | Iterator to loop over all columns, starting by the deepest sub columns, then to their parents, then to their siblings.  More...
  | 
|   | 
 | 
| 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. 
  | 
|   | 
| 
using  | TableLayoutArgs = std::initializer_list< std::variant< string_view, TableLayout::Column > > | 
|   | Alias for an initializer list of variants that can contain either a string or a layout column. 
  | 
|   | 
| 
using  | ColumnsList = Column::ColumnsList | 
|   | Alias for the list of columns. 
  | 
|   | 
Class for setup the table layout. 
Definition at line 35 of file TableLayout.hpp.
 
◆ TableLayout() [1/4]
Construct a new Table Layout object. 
- Parameters
 - 
  
    | title | The table title  | 
    | columns | A vector containing all column initialized  | 
  
   
Definition at line 548 of file TableLayout.hpp.
 
 
◆ TableLayout() [2/4]
Construct a new Table Layout object. 
- Parameters
 - 
  
    | title | The table title  | 
    | args | An initializer_list containing string / column  | 
  
   
Definition at line 561 of file TableLayout.hpp.
 
 
◆ TableLayout() [3/4]
Construct a new Table Layout object. 
- Parameters
 - 
  
    | args | An initializer_list containing string / column  | 
  
   
Definition at line 574 of file TableLayout.hpp.
 
 
◆ TableLayout() [4/4]
Construct a new Table Layout object. 
- Parameters
 - 
  
    | title | The table title  | 
    | args | An initializer_list containing string / column  | 
  
   
Definition at line 585 of file TableLayout.hpp.
 
 
◆ addColumn() [1/2]
      
        
          | void geos::TableLayout::addColumn  | 
          ( | 
          string_view  | 
          columnName | ) | 
           | 
        
      
 
Create and add a column to the columns vector given a string. 
- Parameters
 - 
  
    | columnName | The column name  | 
  
   
 
 
◆ addColumn() [2/2]
Create and add a column to the columns vector given a Column. 
- Parameters
 - 
  
    | column | Vector containing addition information on the column  | 
  
   
 
 
◆ addColumns() [1/2]
Create and add columns to the columns vector given a string vector. 
- Parameters
 - 
  
  
 
 
 
◆ addColumns() [2/2]
Create and add columns to the columns vector given a string vector. 
- Parameters
 - 
  
    | columnNames | The columns name  | 
  
   
 
 
◆ beginDeepFirst()
- Returns
 - Return an itarator pointing on the first leaf of the first columns vector Example on 2 column with Column A : 2 layer and Column B : 3 layers A.A -> A-B -> A-C -> A -> B-A-A -> B-A-B -> B-A -> B-B-A -> B-B-B -> B-B -> B 
 
 
 
◆ enableLineBreak()
      
        
          | TableLayout& geos::TableLayout::enableLineBreak  | 
          ( | 
          bool  | 
          value | ) | 
           | 
        
      
 
Remove the return line at the end & begenning of the table. 
- Parameters
 - 
  
    | value | Value to desactivate or not wrapLine at the end  | 
  
   
- Returns
 - The tableLayout reference 
 
 
 
◆ endDeepFirst()
- Returns
 - Return a end itarator This iterator is initialized with a null pointer representing a position after the last valid element 
 
Definition at line 528 of file TableLayout.hpp.
 
 
◆ getBorderMargin()
  
  
      
        
          | integer const& geos::TableLayout::getBorderMargin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
- Returns
 - The number of spaces at each table sides 
 
Definition at line 665 of file TableLayout.hpp.
 
 
◆ getColumnMargin()
  
  
      
        
          | integer const& geos::TableLayout::getColumnMargin  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
- Returns
 - The number of character between two columns (spaces + the separacting character). 
 
Definition at line 671 of file TableLayout.hpp.
 
 
◆ getColumns() [1/2]
◆ getColumns() [2/2]
  
  
      
        
          | ColumnsList const& geos::TableLayout::getColumns  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getMarginValue()
  
  
      
        
          | integer const& geos::TableLayout::getMarginValue  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
- Returns
 - The number of margin spaces around contents. 
 
Definition at line 677 of file TableLayout.hpp.
 
 
◆ getMaxColumnWidth()
  
  
      
        
          | size_t const& geos::TableLayout::getMaxColumnWidth  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
◆ getTitleLayout() [1/2]
- Returns
 - The table name. Returned as a for multiline support. 
 
Definition at line 614 of file TableLayout.hpp.
 
 
◆ getTitleLayout() [2/2]
  
  
      
        
          | CellLayout const& geos::TableLayout::getTitleLayout  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
- Returns
 - The table name. Returned as a for multiline support. 
 
Definition at line 608 of file TableLayout.hpp.
 
 
◆ getTitleStr()
- Returns
 - The table name. Returned as a for multiline support. 
 
Definition at line 620 of file TableLayout.hpp.
 
 
◆ isLineBreakEnabled()
      
        
          | bool geos::TableLayout::isLineBreakEnabled  | 
          ( | 
           | ) | 
           const | 
        
      
 
- Returns
 - check if the line break at the end & beginning is activated 
 
 
 
◆ isMaxColumnWidthSet()
  
  
      
        
          | bool geos::TableLayout::isMaxColumnWidthSet  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
check if a column max width has been set 
- Returns
 - Truef a column max width has been set, otherwise false 
 
Definition at line 654 of file TableLayout.hpp.
 
 
◆ processArguments() [1/2]
Add a column to the table given an initializer_list of string & Column. 
- Parameters
 - 
  
    | args | An initializer_list containing string / column  | 
  
   
Definition at line 716 of file TableLayout.hpp.
 
 
◆ processArguments() [2/2]
template<typename ... Ts> 
  
  
      
        
          | void geos::TableLayout::processArguments  | 
          ( | 
          Ts &...  | 
          args | ) | 
           | 
         
       
   | 
  
inlineprotected   | 
  
 
- Template Parameters
 - 
  
    | Ts | The remaining arguments  | 
  
   
- Parameters
 - 
  
    | args | The remaining arguments to be processed  | 
  
   
Definition at line 731 of file TableLayout.hpp.
 
 
◆ setMargin()
Set the minimal margin width between cell content and borders. 
- Parameters
 - 
  
    | marginValue | The margin value  | 
  
   
- Returns
 - The tableLayout reference 
 
 
 
◆ setMaxColumnWidth()
Set the maximal width for each column. 
- Parameters
 - 
  
    | width | The max column width  | 
  
   
- Returns
 - The tableLayout reference 
 
 
 
◆ setTitle()
- Parameters
 - 
  
  
 
- Returns
 - The tableLayout reference 
 
 
 
The documentation for this class was generated from the following file: