VTK  9.2.6
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
39#ifndef vtkIndent_h
40#define vtkIndent_h
41
42#include "vtkCommonCoreModule.h" // For export macro
43#include "vtkSystemIncludes.h"
44
45class vtkIndent;
46VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
47
48class VTKCOMMONCORE_EXPORT vtkIndent
49{
50public:
51 void Delete() { delete this; }
52 explicit vtkIndent(int ind = 0) { this->Indent = ind; }
53 static vtkIndent* New();
54
60
64 friend VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
65
66protected:
67 int Indent;
68};
69
70#endif
71// VTK-HeaderTest-Exclude: vtkIndent.h
a simple class to control print indentation
Definition vtkIndent.h:49
void Delete()
Definition vtkIndent.h:51
vtkIndent(int ind=0)
Definition vtkIndent.h:52
int Indent
Definition vtkIndent.h:67
friend VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)
Print out the indentation.
vtkIndent GetNextIndent()
Determine the next indentation level.
static vtkIndent * New()
VTKCOMMONCORE_EXPORT ostream & operator<<(ostream &os, const vtkIndent &o)