00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkIndent.h,v $ 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 00026 #ifndef __vtkIndent_h 00027 #define __vtkIndent_h 00028 00029 #include "vtkSystemIncludes.h" 00030 00031 class vtkIndent; 00032 VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o); 00033 00034 class VTK_COMMON_EXPORT vtkIndent 00035 { 00036 public: 00037 void Delete() {delete this;}; 00038 explicit vtkIndent(int ind=0) {this->Indent=ind;}; 00039 static vtkIndent *New(); 00040 00043 vtkIndent GetNextIndent(); 00044 00045 //BTX 00047 00048 friend VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o); 00049 //ETX 00051 00052 protected: 00053 int Indent; 00054 00055 }; 00056 00057 #endif