[#BloombergLP-bdlb-PrintAdapter-2constructor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/PrintAdapter.adoc[PrintAdapter]::PrintAdapter
:relfileprefix: ../../../
:mrdocs:

Create a print adapter bound to the specified `object`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;printadapter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
PrintAdapter(
    TYPE const* object,
    int level = 0,
    int spacesPerLevel = 4);
----

== Description

Optionally specify `level` and `spacesPerLevel` attributes used when the `PrintAdapter` object is streamed&period; Unless `level` is specified, a value of 0 is used&semi; unless `spacesPerLevel` is specified, a value of 4 is used&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *object*
| pointer to the object to adapt for streaming
| *level*
| indentation level used when streamed
| *spacesPerLevel*
| spaces per indentation level used when streamed
|===


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