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

Common/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 =========================================================================*/
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 
00042   virtual void DisplayText(const char*);
00043 
00045   vtkSetStringMacro(FileName);
00046   vtkGetStringMacro(FileName);
00048 
00050 
00051   vtkSetMacro(Flush, int);
00052   vtkGetMacro(Flush, int);
00053   vtkBooleanMacro(Flush, int);
00055         
00057 
00059   vtkSetMacro(Append, int);
00060   vtkGetMacro(Append, int);
00061   vtkBooleanMacro(Append, int);
00063 
00064  protected:
00065   vtkFileOutputWindow(); 
00066   virtual ~vtkFileOutputWindow(); 
00067   void Initialize();
00068   char* FileName;
00069   ofstream* OStream;
00070   int Flush;
00071   int Append;
00072 private:
00073   vtkFileOutputWindow(const vtkFileOutputWindow&);  // Not implemented.
00074   void operator=(const vtkFileOutputWindow&);  // Not implemented.
00075 };
00076 
00077 
00078 
00079 #endif