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