Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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
    00048 #ifndef __vtkIndent_h
    00049 #define __vtkIndent_h
    00050
    00051 #include "vtkSystemIncludes.h"
    00052
    00053 class vtkIndent;
    00054 VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
    00055
    00056 class VTK_COMMON_EXPORT vtkIndent
    00057 {
    00058 public:
    00059   void Delete() {delete this;};
    00060   vtkIndent(int ind=0) {this->Indent=ind;};
    00061   static vtkIndent *New();
    00062
    00063   virtual const char *GetClassName() {return "vtkIndent";};
    00064
    00067   vtkIndent GetNextIndent();
    00068
    00069   //BTX
    00071   /*! Print out the indentation. Basically output a bunch of spaces. */
    00072   friend VTK_COMMON_EXPORT ostream& operator<<(ostream& os, const vtkIndent& o);
    00073   //ETX
    00075
    00076 protected:
    00077   int Indent;
    00078
    00079 };
    00080
    00081 #endif