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