VTK  9.4.20241217
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
97#ifndef vtkIndent_h
98#define vtkIndent_h
99
100#include "vtkCommonCoreModule.h" // For export macro
101#include "vtkSystemIncludes.h"
102
103VTK_ABI_NAMESPACE_BEGIN
104class vtkIndent;
105VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
106
107class VTKCOMMONCORE_EXPORT vtkIndent
108{
109public:
110 void Delete() { delete this; }
111 explicit vtkIndent(int ind = 0) { this->Indent = ind; }
112 static vtkIndent* New();
113
119
123 friend VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
124
125protected:
127};
128
129VTK_ABI_NAMESPACE_END
130#endif
131// VTK-HeaderTest-Exclude: vtkIndent.h
a simple class to control print indentation
Definition vtkIndent.h:108
void Delete()
Definition vtkIndent.h:110
vtkIndent(int ind=0)
Definition vtkIndent.h:111
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)