VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkIndent.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00029 #ifndef vtkIndent_h 00030 #define vtkIndent_h 00031 00032 #include "vtkCommonCoreModule.h" // For export macro 00033 #include "vtkSystemIncludes.h" 00034 00035 class vtkIndent; 00036 VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o); 00037 00038 class VTKCOMMONCORE_EXPORT vtkIndent 00039 { 00040 public: 00041 void Delete() {delete this;}; 00042 explicit vtkIndent(int ind=0) {this->Indent=ind;}; 00043 static vtkIndent *New(); 00044 00047 vtkIndent GetNextIndent(); 00048 00049 //BTX 00051 00052 friend VTKCOMMONCORE_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o); 00053 //ETX 00055 00056 protected: 00057 int Indent; 00058 00059 }; 00060 00061 #endif 00062 // VTK-HeaderTest-Exclude: vtkIndent.h