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 "vtkCommonCoreModule.h" // For export macro
30 #include "vtkOutputWindow.h"
31 
32 
34 {
35 public:
37 
38  static vtkFileOutputWindow* New();
39 
40  virtual void PrintSelf(ostream& os, vtkIndent indent);
41 
44  virtual void DisplayText(const char*);
45 
47 
48  vtkSetStringMacro(FileName);
49  vtkGetStringMacro(FileName);
51 
53 
54  vtkSetMacro(Flush, int);
55  vtkGetMacro(Flush, int);
56  vtkBooleanMacro(Flush, int);
58 
60 
63  vtkSetMacro(Append, int);
64  vtkGetMacro(Append, int);
65  vtkBooleanMacro(Append, int);
67 
68 protected:
70  virtual ~vtkFileOutputWindow();
71  void Initialize();
72 
73  char* FileName;
74  ofstream* OStream;
75  int Flush;
76  int Append;
77 
78 private:
79  vtkFileOutputWindow(const vtkFileOutputWindow&); // Not implemented.
80  void operator=(const vtkFileOutputWindow&); // Not implemented.
81 };
82 
83 
84 #endif
virtual void DisplayText(const char *)
#define VTKCOMMONCORE_EXPORT
static vtkOutputWindow * New()
File Specific output window class.
a simple class to control print indentation
Definition: vtkIndent.h:38
base class for writing debug output to a console
virtual void PrintSelf(ostream &os, vtkIndent indent)