ALBA
albaIndent.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaIndent
5 Authors: originally based on vtkIndent (www.vtk.org), rewritten by Marco Petrone
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaIndent_h
18#define __albaIndent_h
19
20#include "albaConfigure.h"
21#include "albaBase.h"
22#include <ostream>
23
24class albaIndent;
25ALBA_EXPORT std::ostream& operator<<(std::ostream& os, const albaIndent& o);
26
30class ALBA_EXPORT albaIndent : public albaBase
31{
32public:
33 albaIndent(int ind=0);
34
36 virtual const char *GetTypeName() {return "albaIndent";};
37
42
43 operator const int() const {return m_Indent;}
45 friend ALBA_EXPORT std::ostream& operator<<(std::ostream& os, const albaIndent& o);
46
47protected:
49};
50
51#endif
52
ALBA_EXPORT std::ostream & operator<<(std::ostream &os, const albaIndent &o)
albaBase - the pourpose of this class is just to groups utilities classes
Definition: albaBase.h:27
albaIndent - a simple class to control print indentation.
Definition: albaIndent.h:31
virtual const char * GetTypeName()
return next level of indentetion
Definition: albaIndent.h:36
friend ALBA_EXPORT std::ostream & operator<<(std::ostream &os, const albaIndent &o)
Print out the indentation.
albaIndent(int ind=0)
albaIndent GetNextIndent()
Determine the next indentation level.
int m_Indent
Definition: albaIndent.h:48