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 "vtkSystemIncludes.h" 00033 00034 class vtkIndent; 00035 VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o); 00036 00037 class VTK_COMMON_EXPORT vtkIndent 00038 { 00039 public: 00040 void Delete() {delete this;}; 00041 explicit vtkIndent(int ind=0) {this->Indent=ind;}; 00042 static vtkIndent *New(); 00043 00046 vtkIndent GetNextIndent(); 00047 00048 //BTX 00050 00051 friend VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o); 00052 //ETX 00054 00055 protected: 00056 int Indent; 00057 00058 }; 00059 00060 #endif