GEOS
Public Member Functions | Public Attributes | List of all members
geos::TableLayout::CellLayout Struct Reference

Structure grouping the cell information to display it in a table (content, type, alignment, ...). More...

#include <TableLayout.hpp>

Public Member Functions

 CellLayout ()
 Constructor to initialize a Cell with a default settings.
 
 CellLayout (CellType cellType, string const &value, TableLayout::Alignment alignment)
 Constructor to initialize a cell given celltype, value and alignment. More...
 

Public Attributes

std::vector< stringm_lines
 vector containing each cell content, separated by lines.
 
CellType m_cellType
 The type of the cell (Header,Value, Merge, ...).
 
Alignment m_alignment
 The alignment of the cell (left, center, right).
 
size_t m_cellWidth
 Maximum length of the data in the cell.
 

Detailed Description

Structure grouping the cell information to display it in a table (content, type, alignment, ...).

Definition at line 72 of file TableLayout.hpp.

Constructor & Destructor Documentation

◆ CellLayout()

geos::TableLayout::CellLayout::CellLayout ( CellType  cellType,
string const &  value,
TableLayout::Alignment  alignment 
)

Constructor to initialize a cell given celltype, value and alignment.

Parameters
cellTypeThe type of the cell.
valueThe value to be assigned to the cell.
alignmentThe alignment of the cell (left, right, or center).

The documentation for this struct was generated from the following file: