Quick Links:

bal | bbl | bdl | bsl

Public Member Functions

bdlb::PrintAdapter< TYPE > Class Template Reference

#include <bdlb_printadapter.h>

List of all members.

Public Member Functions

 PrintAdapter (const TYPE *object, int level=0, int spacesPerLevel=4)
int level () const
const TYPE & object () const
int spacesPerLevel () const

Detailed Description

template<class TYPE>
class bdlb::PrintAdapter< TYPE >

This class provides an object that may be streamed with operator<< to give full control of the indentation format of the streaming.

See Component bdlb_printadapter


Constructor & Destructor Documentation

template<class TYPE>
bdlb::PrintAdapter< TYPE >::PrintAdapter ( const TYPE *  object,
int  level = 0,
int  spacesPerLevel = 4 
) [explicit]

Create a print adapter object bound to the specified object, and with the optionally specified level and spacesPerLevel attributes, to be 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.


Member Function Documentation

template<class TYPE>
int bdlb::PrintAdapter< TYPE >::level (  )  const

Return the level attribute.

template<class TYPE>
const TYPE& bdlb::PrintAdapter< TYPE >::object (  )  const

Return a reference to the object referred to by this print adapter.

template<class TYPE>
int bdlb::PrintAdapter< TYPE >::spacesPerLevel (  )  const

Return the spacesPerLevel attribute.


The documentation for this class was generated from the following file: