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 
30 #ifndef vtkIndent_h
31 #define vtkIndent_h
32 
33 #include "vtkCommonCoreModule.h" // For export macro
34 #include "vtkSystemIncludes.h"
35 
36 class vtkIndent;
37 VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
38 
39 class VTKCOMMONCORE_EXPORT vtkIndent
40 {
41 public:
42  void Delete() {delete this;};
43  explicit vtkIndent(int ind=0) {this->Indent=ind;};
44  static vtkIndent *New();
45 
50  vtkIndent GetNextIndent();
51 
55  friend VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
56 
57 protected:
58  int Indent;
59 
60 };
61 
62 #endif
63 // VTK-HeaderTest-Exclude: vtkIndent.h
int Indent
Definition: vtkIndent.h:58
vtkIndent(int ind=0)
Definition: vtkIndent.h:43
a simple class to control print indentation
Definition: vtkIndent.h:39
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
void Delete()
Definition: vtkIndent.h:42