Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Common/vtkIndent.h

Go to the documentation of this file.
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 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 vtkIndent(int ind=0) {this->Indent=ind;}; 00042 static vtkIndent *New(); 00043 00044 virtual const char *GetClassName() {return "vtkIndent";}; 00045 00048 vtkIndent GetNextIndent(); 00049 00050 //BTX 00052 00053 friend VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o); 00054 //ETX 00056 00057 protected: 00058 int Indent; 00059 00060 }; 00061 00062 #endif