VTK  9.3.20240318
vtkIndent.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
97 #ifndef vtkIndent_h
98 #define vtkIndent_h
99 
100 #include "vtkCommonCoreModule.h" // For export macro
101 #include "vtkSystemIncludes.h"
102 
103 VTK_ABI_NAMESPACE_BEGIN
104 class vtkIndent;
105 VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
106 
107 class VTKCOMMONCORE_EXPORT vtkIndent
108 {
109 public:
110  void Delete() { delete this; }
111  explicit vtkIndent(int ind = 0) { this->Indent = ind; }
112  static vtkIndent* New();
113 
119 
123  friend VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
124 
125 protected:
126  int Indent;
127 };
128 
129 VTK_ABI_NAMESPACE_END
130 #endif
131 // VTK-HeaderTest-Exclude: vtkIndent.h
a simple class to control print indentation
Definition: vtkIndent.h:108
void Delete()
Definition: vtkIndent.h:110
vtkIndent(int ind=0)
Definition: vtkIndent.h:111
int Indent
Definition: vtkIndent.h:126
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)