Manages a single column for TextTableFormatter.
|
std::string | title_ |
| Statit data: title of the column.
|
|
int | width_ |
| Static data: width of the column.
|
|
bool | bWrap_ |
| Static data: whether to automatically wrap input text.
|
|
int | firstLine_ |
| First line offset for the current row.
|
|
std::vector< std::string > | lines_ |
| Text lines for the current row.
|
|
int | nextLineIndex_ |
| Formatting state: index in lines_ for the next line.
|
|
size_t | nextLineOffset_ |
| Formatting state: offset within line nextLineIndex_ for the next line.
|
|
int gmx::TextTableFormatter::Impl::ColumnData::firstLine |
( |
| ) |
const |
|
inline |
Returns the first line offset for the current row.
Note that the return value may be outside the printed lines if there is no text.
void gmx::TextTableFormatter::Impl::ColumnData::startFormatting |
( |
| ) |
|
|
inline |
std::string gmx::TextTableFormatter::Impl::ColumnData::textForNextLine |
( |
int |
columnWidth | ) |
|
|
inline |
Returns the text for the next line.
- Parameters
-
[in] | columnWidth | Width to wrap the text to. |
- Returns
- Text for the next line, or empty string if there is no text for this column.
The documentation for this struct was generated from the following file: