class to format data in a formatted text format, allowing contributions from multiple MPI ranks.
More...
#include <TableMpiComponents.hpp>
|
|
using | ColumnWidthModifier = std::function< void(stdVector< size_t > &) > |
| | A functor which allow to customize the columns width after their computation.
|
| |
| void | initalizeTableGrids (PreparedTableLayout const &tableLayout, TableData const &tableData, CellLayoutRows &dataCellsLayout, CellLayoutRows &headerCellsLayout, CellLayoutRows &errorCellsLayout, size_t &tableTotalWidth, ColumnWidthModifier columnWidthModifier) const |
| | Initializes the table layout with the given table data and prepares necessary layouts for headers and data cells. More...
|
| |
| void | outputTableHeader (std::ostream &tableOutput, PreparedTableLayout const &tableLayout, CellLayoutRows const &headerCellsLayout, string_view separatorLine) const |
| | Outputs the top part of the formatted table to the provided output stream. More...
|
| |
| void | outputTableData (std::ostream &tableOutput, PreparedTableLayout const &tableLayout, CellLayoutRows const &dataCellsLayout) const |
| | Outputs the data part of the formatted table to the provided output stream. More...
|
| |
| void | outputTableFooter (std::ostream &tableOutput, PreparedTableLayout const &tableLayout, CellLayoutRows &errorCellsLayout, string_view separatorLine, bool hasData) const |
| | Outputs the bottom part of the formatted table to the provided output stream. More...
|
| |
|
| TableFormatter () |
| | Construct a default Table Formatter without layout specification (to only insert data in it, without any column / title). Feature is not tested.
|
| |
| | TableFormatter (TableLayout const &tableLayout) |
| | Construct a new Table Formatter from a tableLayout. More...
|
| |
| void | toStreamImpl (std::ostream &outputStream, string_view content) const |
| | Implements the actual writing of content to an output stream. Adds appropriate messages to the error list when the operation fails. More...
|
| |
|
PreparedTableLayout const | m_tableLayout |
| | Layout for a table.
|
| |
|
std::unique_ptr< geos::TableErrorListing > | m_errors = std::make_unique< geos::TableErrorListing >() |
| | Class used for listing all errors that may have occured during table generation.
|
| |
|
static constexpr char | m_verticalLine = '|' |
| | symbol for separator construction
|
| |
|
static constexpr char | m_horizontalLine = '-' |
| | for the extremity of a row
|
| |
class to format data in a formatted text format, allowing contributions from multiple MPI ranks.
Definition at line 45 of file TableMpiComponents.hpp.
◆ TableTextMpiOutput() [1/2]
Construct a default Table Formatter without layout specification (to only insert data in it, without any column / title). Feature is not tested.
- Parameters
-
| mpiLayout | MPI-specific layout information (default is having contiguous ranks data). |
◆ TableTextMpiOutput() [2/2]
Construct a new TableTextMpiOutput from a tableLayout.
- Parameters
-
| tableLayout | Contain all tableColumnData names and optionnaly the table title |
| mpiLayout | MPI-specific layout information (default is having contiguous ranks data). |
◆ toStream()
template<typename DATASOURCE >
| void geos::TableTextMpiOutput::toStream |
( |
std::ostream & |
outputStream, |
|
|
DATASOURCE const & |
tableData |
|
) |
| const |
Convert a data source to a table string.
- Parameters
-
| tableData | The data source to convert. |
| outputStream | The target output stream for rank 0, to output the table string representation of the TableData. Each rank contributing to the common rank 0 output stream with their local data. It may be the log or a file stream. |
- Note
- This method must be called by all MPI ranks.
The documentation for this class was generated from the following file: