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