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 
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 
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
a simple class to control print indentation
Definition: vtkIndent.h:29
void Delete()
Definition: vtkIndent.h:31
vtkIndent(int ind=0)
Definition: vtkIndent.h:32
int Indent
Definition: vtkIndent.h:47
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)