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