BloombergLP::bdlb::PrintAdapter::PrintAdapter

Create a print adapter bound to the specified object.

Synopsis

Declared in <bdlb_printadapter.h>

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. Unless level is specified, a value of 0 is used; unless spacesPerLevel is specified, a value of 4 is used.

Parameters

NameDescription
objectpointer to the object to adapt for streaming
levelindentation level used when streamed
spacesPerLevelspaces per indentation level used when streamed