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 
00033 #ifndef __vtkIndent_h
00034 #define __vtkIndent_h
00035 
00036 #include "vtkSystemIncludes.h"
00037 
00038 class vtkIndent;
00039 VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
00040 
00041 class VTK_COMMON_EXPORT vtkIndent
00042 {
00043 public:
00044   void Delete() {delete this;};
00045   vtkIndent(int ind=0) {this->Indent=ind;};
00046   static vtkIndent *New();
00047 
00048   virtual const char *GetClassName() {return "vtkIndent";};
00049 
00052   vtkIndent GetNextIndent();
00053 
00054   //BTX
00056 
00057   friend VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
00058   //ETX
00060 
00061 protected:
00062   int Indent;
00063   
00064 };
00065 
00066 #endif