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 =========================================================================*/ 00026 #ifndef __vtkFileOutputWindow_h 00027 #define __vtkFileOutputWindow_h 00028 00029 #include "vtkOutputWindow.h" 00030 00031 00032 class VTK_COMMON_EXPORT vtkFileOutputWindow : public vtkOutputWindow 00033 { 00034 public: 00035 vtkTypeRevisionMacro(vtkFileOutputWindow, vtkOutputWindow); 00036 00037 static vtkFileOutputWindow* New(); 00038 00039 virtual void PrintSelf(ostream& os, vtkIndent indent); 00040 00043 virtual void DisplayText(const char*); 00044 00046 00047 vtkSetStringMacro(FileName); 00048 vtkGetStringMacro(FileName); 00050 00052 00053 vtkSetMacro(Flush, int); 00054 vtkGetMacro(Flush, int); 00055 vtkBooleanMacro(Flush, int); 00057 00059 00062 vtkSetMacro(Append, int); 00063 vtkGetMacro(Append, int); 00064 vtkBooleanMacro(Append, int); 00066 00067 protected: 00068 vtkFileOutputWindow(); 00069 virtual ~vtkFileOutputWindow(); 00070 void Initialize(); 00071 00072 char* FileName; 00073 ofstream* OStream; 00074 int Flush; 00075 int Append; 00076 private: 00077 vtkFileOutputWindow(const vtkFileOutputWindow&); // Not implemented. 00078 void operator=(const vtkFileOutputWindow&); // Not implemented. 00079 }; 00080 00081 00082 #endif