BloombergLP::bslim::Printer

This class implements a mechanism used to format data as required by the standard BDE print method contract.

Synopsis

Declared in <bslim_printer.h>

class Printer;

Member Functions

NameDescription
Printer [constructor]Create a Printer that formats output to the specified stream.
~Printer [destructor]Destroy this Printer object.
absLevel Return the absolute value of the formatting level supplied at construction.
end Print a closing bracket and trailing newline for this object's output.
print Format data to the stream supplied at construction.
printAttribute printAttribute overloads
printEndIndentation Print the indentation used after the last attribute.
printForeign Format data using printFunctionObject, prefixed by name.
printHexAddr Print address in hexadecimal, or "NULL" if address is 0.
printIndentation Print the indentation used before each attribute.
printOrNull printOrNull overloads
printValue printValue overloads
spacesPerLevel Return the number of whitespace characters to output for each level of indentation.
start Print the initial indentation and opening bracket for this object.
suppressInitialIndentFlag Return true if the initial output indentation will be suppressed, and false otherwise.