BloombergLP::bslim::Printer::Printer

Create a Printer that formats output to the specified stream.

Synopsis

Declared in <bslim_printer.h>

Printer(
    std::ostream* stream,
    int level,
    int spacesPerLevel);

Description

Create a Printer object that will print to the specified stream in a format dictated by the values of the specified level and spacesPerLevel, as per the contract of the standard BDE print method. The behavior is undefined unless stream is valid.

Parameters

NameDescription
streamoutput stream to which this object prints
levelindentation level as defined by the BDE print contract
spacesPerLevelspaces per indentation level; negative for single-line output