#include <Table.h>
Definition at line 12 of file Table.h.
◆ Table()
Table::Table |
( |
const Size |
colSep = 1 , |
|
|
const Size |
minColWidth = 5 |
|
) |
| |
|
inline |
Creates an empty table.
- Parameters
-
colSep | Minimal number of characters between columns. |
minColWidth | Minimal width of a column; the column gets strethed if needed. |
Definition at line 28 of file Table.h.
◆ columnCnt()
Size Table::columnCnt |
( |
| ) |
const |
|
inline |
◆ rowCnt()
Size Table::rowCnt |
( |
| ) |
const |
|
inline |
◆ setCell()
void Table::setCell |
( |
const Size |
colIdx, |
|
|
const Size |
rowIdx, |
|
|
std::string |
text |
|
) |
| |
|
inline |
Sets the text in given cell.
If the cell already exists, the previous text is replaced, otherwise a new cell is created, extending the number of cells and rows if needed.
Definition at line 35 of file Table.h.
◆ toString()
std::string Table::toString |
( |
| ) |
const |
|
inline |
Creates the text representation of the table.
Definition at line 58 of file Table.h.
◆ colSep
◆ minColWidth
The documentation for this class was generated from the following file:
- /home/pavel/projects/astro/sph/src/core/io/Table.h