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 
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:
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
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition: vtkCommonCoreModule.h:15
vtkFileOutputWindow::FileName
char * FileName
Definition: vtkFileOutputWindow.h:73
vtkFileOutputWindow::vtkFileOutputWindow
vtkFileOutputWindow()
vtkFileOutputWindow::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkFileOutputWindow::New
static vtkFileOutputWindow * New()
vtkOutputWindow.h
vtkFileOutputWindow::Flush
int Flush
Definition: vtkFileOutputWindow.h:75
vtkFileOutputWindow::Append
int Append
Definition: vtkFileOutputWindow.h:76
vtkFileOutputWindow::Initialize
void Initialize()
vtkCommonCoreModule.h
vtkOutputWindow
base class for writing debug output to a console
Definition: vtkOutputWindow.h:50
vtkFileOutputWindow
File Specific output window class.
Definition: vtkFileOutputWindow.h:34
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkFileOutputWindow::~vtkFileOutputWindow
virtual ~vtkFileOutputWindow()
vtkFileOutputWindow::DisplayText
virtual void DisplayText(const char *)
vtkFileOutputWindow::OStream
ofstream * OStream
Definition: vtkFileOutputWindow.h:74