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

Common/vtkIndent.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkIndent.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00016 
00046 #ifndef __vtkIndent_h
00047 #define __vtkIndent_h
00048 
00049 #include "vtkSystemIncludes.h"
00050 
00051 class vtkIndent;
00052 VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
00053 
00054 class VTK_COMMON_EXPORT vtkIndent
00055 {
00056 public:
00057   void Delete() {delete this;};
00058   vtkIndent(int ind=0) {this->Indent=ind;};
00059   static vtkIndent *New();
00060 
00061   virtual const char *GetClassName() {return "vtkIndent";};
00062 
00065   vtkIndent GetNextIndent();
00066 
00067   //BTX
00069 
00070   friend VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
00071   //ETX
00073 
00074 protected:
00075   int Indent;
00076   
00077 };
00078 
00079 #endif