Create a Printer that formats output to the specified stream.
Declared in <bslim_printer.h>
Printer(
std::ostream* stream,
int level,
int spacesPerLevel);
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.
| Name | Description |
|---|---|
| stream | output stream to which this object prints |
| level | indentation level as defined by the BDE print contract |
| spacesPerLevel | spaces per indentation level; negative for single-line output |