cwidget
0.5.17
|
The class that defines how to parse and generate columns. More...
#include <column_definition.h>
Public Member Functions | |
virtual column_disposition | setup_column (int type)=0 |
Computes the text and column offset of a column of the given type. More... | |
column_generator (const column_definition_list &_columns) | |
Create a column generator for the given list of column specifications. | |
std::wstring | layout_columns (unsigned int width, column_parameters &p) |
Given the target width and positional parameters, construct an output string to be displayed on the terminal. More... | |
The class that defines how to parse and generate columns.
Typically, when formatting a list of columnar data, one instance of a subclass of column_generator will be created for each row.
wstring cwidget::config::column_generator::layout_columns | ( | unsigned int | width, |
column_parameters & | p | ||
) |
Given the target width and positional parameters, construct an output string to be displayed on the terminal.
width | The width of the terminal for which the columns are being formatted. |
p | The positional parameters passed to the layout operation. |
|
pure virtual |
Computes the text and column offset of a column of the given type.