lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::TableBuilder< N > Class Template Reference

#include <TableBuilder.h>

Public Member Functions

void add (std::array< std::string, N > line)
 
std::string build ()
 

Detailed Description

template<std::size_t N>
class lintel::TableBuilder< N >

Builds a formatted text table with a fixed number of columns.

Member Function Documentation

◆ add()

template<std::size_t N>
void lintel::TableBuilder< N >::add ( std::array< std::string, N >  line)
inline

Add a row of data to the table.

Parameters
linean array of strings, one per column

◆ build()

template<std::size_t N>
std::string lintel::TableBuilder< N >::build ( )
inline

Build the formatted table string with separators and aligned columns.

Returns
the formatted table as a string

The documentation for this class was generated from the following file: