DP3
Public Member Functions | Static Public Member Functions | List of all members
dp3::common::Indent Class Reference

Useful stream manipulation methods. More...

#include <StreamUtil.h>

Public Member Functions

 Indent ()
 Constructor. Increments indentation level. More...
 
 ~Indent ()
 Destructor. Decrements indentation level. More...
 

Static Public Member Functions

static unsigned int level ()
 Return the amount of indentation. More...
 
static const std::string & token ()
 Return the token to be printed per indentation level. More...
 

Detailed Description

Useful stream manipulation methods.

Handles indentation of text lines. Every time an Indent object is constructed, the static member level is incremented by one, and every time an Indent object is destructed level is decremented by one. To increment the amount of indentation you simply create an Indent object. When this object goes out of scope, the amount of indentation is automagically decremented.

Constructor & Destructor Documentation

◆ Indent()

dp3::common::Indent::Indent ( )
inline

Constructor. Increments indentation level.

◆ ~Indent()

dp3::common::Indent::~Indent ( )
inline

Destructor. Decrements indentation level.

Member Function Documentation

◆ level()

static unsigned int dp3::common::Indent::level ( )
inlinestatic

Return the amount of indentation.

◆ token()

static const std::string& dp3::common::Indent::token ( )
inlinestatic

Return the token to be printed per indentation level.


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