|
DP3
|
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... | |
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.
|
inline |
Constructor. Increments indentation level.
|
inline |
Destructor. Decrements indentation level.
|
inlinestatic |
Return the amount of indentation.
|
inlinestatic |
Return the token to be printed per indentation level.