VTK
vtkFileOutputWindow.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkFileOutputWindow.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
26 #ifndef __vtkFileOutputWindow_h
27 #define __vtkFileOutputWindow_h
28 
29 #include "vtkOutputWindow.h"
30 
31 
33 {
34 public:
36 
37  static vtkFileOutputWindow* New();
38 
39  virtual void PrintSelf(ostream& os, vtkIndent indent);
40 
43  virtual void DisplayText(const char*);
44 
46 
47  vtkSetStringMacro(FileName);
48  vtkGetStringMacro(FileName);
50 
52 
53  vtkSetMacro(Flush, int);
54  vtkGetMacro(Flush, int);
55  vtkBooleanMacro(Flush, int);
57 
59 
62  vtkSetMacro(Append, int);
63  vtkGetMacro(Append, int);
64  vtkBooleanMacro(Append, int);
66 
67 protected:
69  virtual ~vtkFileOutputWindow();
70  void Initialize();
71 
72  char* FileName;
73  ofstream* OStream;
74  int Flush;
75  int Append;
76 
77 private:
78  vtkFileOutputWindow(const vtkFileOutputWindow&); // Not implemented.
79  void operator=(const vtkFileOutputWindow&); // Not implemented.
80 };
81 
82 
83 #endif
virtual void DisplayText(const char *)
static vtkOutputWindow * New()
File Specific output window class.
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_COMMON_EXPORT
base class for writing debug output to a console
virtual void PrintSelf(ostream &os, vtkIndent indent)