ALBA
|
#include <albaIndent.h>
Public Member Functions | |
albaIndent (int ind=0) | |
virtual const char * | GetTypeName () |
albaIndent | GetNextIndent () |
operator const int () const | |
Protected Attributes | |
int | m_Indent |
Friends | |
ALBA_EXPORT std::ostream & | operator<< (std::ostream &os, const albaIndent &o) |
albaIndent - a simple class to control print indentation.
albaIndent is used to control indentation during the chaining print process. This way nested objects can correctly indent themselves.
Definition at line 30 of file albaIndent.h.
albaIndent::albaIndent | ( | int | ind = 0 | ) |
|
inlinevirtual |
return next level of indentetion
Definition at line 36 of file albaIndent.h.
albaIndent albaIndent::GetNextIndent | ( | ) |
Determine the next indentation level.
Keep indenting by two until the max of forty.
|
inline |
Definition at line 43 of file albaIndent.h.
|
friend |
Print out the indentation.
Basically output a bunch of spaces.
|
protected |
Definition at line 48 of file albaIndent.h.