ALBA
Public Member Functions | Protected Attributes | Friends | List of all members
albaIndent Class Reference

#include <albaIndent.h>

Inheritance diagram for albaIndent:
Inheritance graph
[legend]
Collaboration diagram for albaIndent:
Collaboration graph
[legend]

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ albaIndent()

albaIndent::albaIndent ( int  ind = 0)

Member Function Documentation

◆ GetTypeName()

virtual const char * albaIndent::GetTypeName ( )
inlinevirtual

return next level of indentetion

Definition at line 36 of file albaIndent.h.

◆ GetNextIndent()

albaIndent albaIndent::GetNextIndent ( )

Determine the next indentation level.

Keep indenting by two until the max of forty.

◆ operator const int()

albaIndent::operator const int ( ) const
inline

Definition at line 43 of file albaIndent.h.

Friends And Related Function Documentation

◆ operator<<

ALBA_EXPORT std::ostream & operator<< ( std::ostream &  os,
const albaIndent o 
)
friend

Print out the indentation.

Basically output a bunch of spaces.

Member Data Documentation

◆ m_Indent

int albaIndent::m_Indent
protected

Definition at line 48 of file albaIndent.h.


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