[#BloombergLP-bslim-Printer]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslim.adoc[bslim]::Printer
:relfileprefix: ../../
:mrdocs:

This class implements a _mechanism_ used to format data as required by the standard BDE `print` method contract&period;

== Synopsis

Declared in `&lt;bslim&lowbar;printer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Printer;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslim/Printer/2constructor.adoc[`Printer`]         [.small]#[constructor]#
| Create a `Printer` that formats output to the specified stream&period;
| xref:BloombergLP/bslim/Printer/2destructor.adoc[`&#126;Printer`] [.small]#[destructor]#
| Destroy this `Printer` object&period;
| xref:BloombergLP/bslim/Printer/absLevel.adoc[`absLevel`] 
| Return the absolute value of the formatting level supplied at construction&period;
| xref:BloombergLP/bslim/Printer/end.adoc[`end`] 
| Print a closing bracket and trailing newline for this object&apos;s output&period;
| xref:BloombergLP/bslim/Printer/print.adoc[`print`] 
| Format `data` to the stream supplied at construction&period;
| xref:BloombergLP/bslim/Printer/printAttribute-0e.adoc[`printAttribute`] 
| `printAttribute` overloads
| xref:BloombergLP/bslim/Printer/printEndIndentation.adoc[`printEndIndentation`] 
| Print the indentation used after the last attribute&period;
| xref:BloombergLP/bslim/Printer/printForeign.adoc[`printForeign`] 
| Format `data` using `printFunctionObject`, prefixed by `name`&period;
| xref:BloombergLP/bslim/Printer/printHexAddr.adoc[`printHexAddr`] 
| Print `address` in hexadecimal, or &quot;NULL&quot; if `address` is 0&period;
| xref:BloombergLP/bslim/Printer/printIndentation.adoc[`printIndentation`] 
| Print the indentation used before each attribute&period;
| xref:BloombergLP/bslim/Printer/printOrNull-0bc.adoc[`printOrNull`] 
| `printOrNull` overloads
| xref:BloombergLP/bslim/Printer/printValue-0e.adoc[`printValue`] 
| `printValue` overloads
| xref:BloombergLP/bslim/Printer/spacesPerLevel.adoc[`spacesPerLevel`] 
| Return the number of whitespace characters to output for each level of indentation&period;
| xref:BloombergLP/bslim/Printer/start.adoc[`start`] 
| Print the initial indentation and opening bracket for this object&period;
| xref:BloombergLP/bslim/Printer/suppressInitialIndentFlag.adoc[`suppressInitialIndentFlag`] 
| Return `true` if the initial output indentation will be suppressed, and `false` otherwise&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
