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