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
Name |
Description |
stream |
output stream to which this object prints |
level |
indentation level as defined by the BDE |
spacesPerLevel |
spaces per indentation level; negative for single‐line output |
Created with MrDocs