VTK  9.3.1
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 
18 #ifndef vtkIndent_h
19 #define vtkIndent_h
20 
21 #include "vtkCommonCoreModule.h" // For export macro
22 #include "vtkSystemIncludes.h"
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkIndent;
26 VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
27 
28 class VTKCOMMONCORE_EXPORT vtkIndent
29 {
30 public:
31  void Delete() { delete this; }
32  explicit vtkIndent(int ind = 0) { this->Indent = ind; }
33  static vtkIndent* New();
34 
39  vtkIndent GetNextIndent();
40 
44  friend VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
45 
46 protected:
47  int Indent;
48 };
49 
50 VTK_ABI_NAMESPACE_END
51 #endif
52 // VTK-HeaderTest-Exclude: vtkIndent.h
int Indent
Definition: vtkIndent.h:47
vtkIndent(int ind=0)
Definition: vtkIndent.h:32
a simple class to control print indentation
Definition: vtkIndent.h:28
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
void Delete()
Definition: vtkIndent.h:31