VTK  9.2.5
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 
109 #ifndef vtkIndent_h
110 #define vtkIndent_h
111 
112 #include "vtkCommonCoreModule.h" // For export macro
113 #include "vtkSystemIncludes.h"
114 
115 class vtkIndent;
116 VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
117 
118 class VTKCOMMONCORE_EXPORT vtkIndent
119 {
120 public:
121  void Delete() { delete this; }
122  explicit vtkIndent(int ind = 0) { this->Indent = ind; }
123  static vtkIndent* New();
124 
130 
134  friend VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
135 
136 protected:
137  int Indent;
138 };
139 
140 #endif
141 // VTK-HeaderTest-Exclude: vtkIndent.h
a simple class to control print indentation
Definition: vtkIndent.h:119
void Delete()
Definition: vtkIndent.h:121
vtkIndent(int ind=0)
Definition: vtkIndent.h:122
int Indent
Definition: vtkIndent.h:137
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)