VTK
vtkIndent.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkIndent.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 
29 #ifndef __vtkIndent_h
30 #define __vtkIndent_h
31 
32 #include "vtkSystemIncludes.h"
33 
34 class vtkIndent;
35 VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
36 
38 {
39 public:
40  void Delete() {delete this;};
41  explicit vtkIndent(int ind=0) {this->Indent=ind;};
42  static vtkIndent *New();
43 
46  vtkIndent GetNextIndent();
47 
48  //BTX
50 
51  friend VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
52  //ETX
54 
55 protected:
56  int Indent;
57 
58 };
59 
60 #endif
int Indent
Definition: vtkIndent.h:56
vtkIndent(int ind=0)
Definition: vtkIndent.h:41
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_COMMON_EXPORT
void Delete()
Definition: vtkIndent.h:40
VTK_COMMON_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)