VTK  9.1.0
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 
103 #ifndef vtkIndent_h
104 #define vtkIndent_h
105 
106 #include "vtkCommonCoreModule.h" // For export macro
107 #include "vtkSystemIncludes.h"
108 
109 class vtkIndent;
110 VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
111 
112 class VTKCOMMONCORE_EXPORT vtkIndent
113 {
114 public:
115  void Delete() { delete this; }
116  explicit vtkIndent(int ind = 0) { this->Indent = ind; }
117  static vtkIndent* New();
118 
124 
128  friend VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
129 
130 protected:
131  int Indent;
132 };
133 
134 #endif
135 // VTK-HeaderTest-Exclude: vtkIndent.h
a simple class to control print indentation
Definition: vtkIndent.h:113
void Delete()
Definition: vtkIndent.h:115
vtkIndent(int ind=0)
Definition: vtkIndent.h:116
int Indent
Definition: vtkIndent.h:131
friend VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
Print out the indentation.
static vtkIndent * New()
vtkIndent GetNextIndent()
Determine the next indentation level.
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)