|
Icarus
Vehicle Simulation as a Transformable Computational Graph, built on Vulcan and Janus
|
ASCII table generator with box-drawing characters. More...
#include <AsciiTable.hpp>
Classes | |
| struct | Column |
Public Types | |
| enum class | Align { Left , Right , Center } |
Public Member Functions | |
| void | AddColumn (const std::string &header, std::size_t width=0, Align align=Align::Left) |
| Add a column definition. | |
| void | AddRow (const std::vector< std::string > &cells) |
| Add a row of data. | |
| std::string | Render () const |
| Generate the formatted table string. | |
| void | ClearRows () |
| Clear all rows (keep columns). | |
| void | Clear () |
| Clear everything. | |
ASCII table generator with box-drawing characters.
Example output: ┌────────────────────────┬─────────┬─────────────────────────────────────┐ │ SIGNAL NAME │ UNIT │ DESCRIPTION │ ├────────────────────────┼─────────┼─────────────────────────────────────┤ │ Gravity.force.x │ N │ Gravity force (x) │ │ Gravity.force.y │ N │ Gravity force (y) │ └────────────────────────┴─────────┴─────────────────────────────────────┘
|
strong |
|
inline |
Add a column definition.
|
inline |
Add a row of data.
|
inline |
Clear everything.
|
inline |
Clear all rows (keep columns).
|
inlinenodiscard |
Generate the formatted table string.