MessageTable

Utility class for constructing tabulated messages.

Constructors

this
this(string delim = " | ", bool wrapped = true, MessageBuffer buffer = null)

Creates a new MessageTable

Members

Functions

add
void add(string[] args...)

Add a row to the table.

all
string[][] all()

Returns all entries in the table (incl. header)

appendToBuffer
void appendToBuffer(MessageBuffer buffer)

Appends the output of this table to a message buffer

appendToBuffers
MessageBuffer[] appendToBuffers(MessageBuffer delegate() createBuffer = null)

Appends the output of this table to N many message buffers

setHeader
void setHeader(string[] args...)

Set a header row. Will not be sorted or modified.

sort
void sort(uint column, int delegate(string) conv = null)

Sort entries by column. Column must be integral.

Meta