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
33#ifndef vtkIndent_h
34#define vtkIndent_h
35
36#include "vtkCommonCoreModule.h" // For export macro
37#include "vtkSystemIncludes.h"
38
39class vtkIndent;
40VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
41
42class VTKCOMMONCORE_EXPORT vtkIndent
43{
44public:
45 void Delete() { delete this; }
46 explicit vtkIndent(int ind = 0) { this->Indent = ind; }
47 static vtkIndent* New();
48
54
58 friend VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
59
60protected:
61 int Indent;
62};
63
64#endif
65// VTK-HeaderTest-Exclude: vtkIndent.h
a simple class to control print indentation
Definition: vtkIndent.h:43
void Delete()
Definition: vtkIndent.h:45
vtkIndent(int ind=0)
Definition: vtkIndent.h:46
int Indent
Definition: vtkIndent.h:61
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)