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