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