BloombergLP::bdlb::PrintAdapterUtil::makeAdapter

Create and return a PrintAdapter for the specified object.

Synopsis

Declared in <bdlb_printadapter.h>

template<class TYPE>
static
PrintAdapter<TYPE>
makeAdapter(
    TYPE const& object,
    int level = 0,
    int spacesPerLevel = 4);

Description

Pass the specified object, level, and spacesPerLevel to the PrintAdapter constructor.

Return Value

a PrintAdapter bound to object

Parameters

NameDescription
objectobject to adapt for streaming
levelindentation level used when streamed
spacesPerLevelspaces per indentation level used when streamed