Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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   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 =========================================================================*/
00030 #ifndef __vtkFileOutputWindow_h
00031 #define __vtkFileOutputWindow_h
00032 
00033 #include "vtkOutputWindow.h"
00034 
00035 
00036 class VTK_COMMON_EXPORT vtkFileOutputWindow : public vtkOutputWindow
00037 {
00038 public:
00039   vtkTypeRevisionMacro(vtkFileOutputWindow, vtkOutputWindow);
00040 
00041   static vtkFileOutputWindow* New();
00042 
00043   virtual void PrintSelf(ostream& os, vtkIndent indent);
00044 
00046   virtual void DisplayText(const char*);
00047 
00049   vtkSetStringMacro(FileName);
00050   vtkGetStringMacro(FileName);
00052 
00054 
00055   vtkSetMacro(Flush, int);
00056   vtkGetMacro(Flush, int);
00057   vtkBooleanMacro(Flush, int);
00059         
00061 
00063   vtkSetMacro(Append, int);
00064   vtkGetMacro(Append, int);
00065   vtkBooleanMacro(Append, int);
00067 
00068  protected:
00069   vtkFileOutputWindow(); 
00070   virtual ~vtkFileOutputWindow(); 
00071   void Initialize();
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 
00083 #endif