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

vtkFileOutputWindow.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkFileOutputWindow.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 =========================================================================*/
00037 #ifndef __vtkFileOutputWindow_h
00038 #define __vtkFileOutputWindow_h
00039 
00040 #include "vtkOutputWindow.h"
00041 
00042 
00043 class VTK_COMMON_EXPORT vtkFileOutputWindow : public vtkOutputWindow
00044 {
00045 public:
00046   vtkTypeRevisionMacro(vtkFileOutputWindow, vtkOutputWindow);
00047 
00048   static vtkFileOutputWindow* New();
00049 
00050   virtual void PrintSelf(ostream& os, vtkIndent indent);
00051 
00053   virtual void DisplayText(const char*);
00054 
00056   vtkSetStringMacro(FileName);
00057   vtkGetStringMacro(FileName);
00059 
00061 
00062   vtkSetMacro(Flush, int);
00063   vtkGetMacro(Flush, int);
00064   vtkBooleanMacro(Flush, int);
00066         
00068 
00070   vtkSetMacro(Append, int);
00071   vtkGetMacro(Append, int);
00072   vtkBooleanMacro(Append, int);
00074 
00075  protected:
00076   vtkFileOutputWindow(); 
00077   virtual ~vtkFileOutputWindow(); 
00078   void Initialize();
00079   char* FileName;
00080   ofstream* OStream;
00081   int Flush;
00082   int Append;
00083 private:
00084   vtkFileOutputWindow(const vtkFileOutputWindow&);  // Not implemented.
00085   void operator=(const vtkFileOutputWindow&);  // Not implemented.
00086 };
00087 
00088 
00089 
00090 #endif