StructTable

Struct table template class.

Note: as this class formats and copies the string for each field in each row, it is generally not advisable to instantiate it as scope.

Constructors

this
this()

Constructor.

Members

Functions

addRow
void addRow(S item)

Adds a row to the table.

clear
void clear()

Clears all rows from the table and adds the header row (containing the names of all struct fields).

display
void display()

Displays the table to the console.

Variables

format_buffer
char[] format_buffer;

Buffer used for string formatting.

Parameters

S

type whose fields specify the columns of the table

Meta