Summarizer

A Summarizer object maintains the state of the summarization and performs basic processing. Handling of files and input lines is left to the caller.

Classes supporting the Summarizer must implement the methods: - setOperators - Called after initializing the object for each operator to be processed. - processHeaderLine - Called to process the header line of each file. Returns true if it was the first header line processed (used when reading multiple files). - processNextLine - Called to process non-header lines. - writeSummaryHeader - Called to write the header line. - writeSummaryBody - Called to write the result lines.

Members

Functions

processHeaderLine
bool processHeaderLine(char[][] lineFields)

Called to process the header line of each file. Returns true if it was the first header line processed (used when reading multiple files).

processNextLine
void processNextLine(char[][] lineFields)

Called to process non-header lines.

setOperators
void setOperators(InputRange!Operator op)

Called after initializing the object for each operator to be processed.

writeSummaryBody
void writeSummaryBody(OutputRange outputStream, SummarizerPrintOptions )

Called to write the result lines.

writeSummaryHeader
void writeSummaryHeader(OutputRange outputStream, SummarizerPrintOptions )

Called to write the header line.

Meta