VTK  9.0.20210417
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 =========================================================================*/
24 #ifndef vtkFileOutputWindow_h
25 #define vtkFileOutputWindow_h
26 
27 #include "vtkCommonCoreModule.h" // For export macro
28 #include "vtkOutputWindow.h"
29 
30 class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
31 {
32 public:
34 
36 
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
43  void DisplayText(const char*) override;
44 
46 
49  vtkSetStringMacro(FileName);
50  vtkGetStringMacro(FileName);
52 
54 
58  vtkSetMacro(Flush, vtkTypeBool);
59  vtkGetMacro(Flush, vtkTypeBool);
60  vtkBooleanMacro(Flush, vtkTypeBool);
62 
64 
70  vtkSetMacro(Append, vtkTypeBool);
71  vtkGetMacro(Append, vtkTypeBool);
72  vtkBooleanMacro(Append, vtkTypeBool);
74 
75 protected:
78  void Initialize();
79 
80  char* FileName;
81  ostream* OStream;
84 
85 private:
87  void operator=(const vtkFileOutputWindow&) = delete;
88 };
89 
90 #endif
vtkFileOutputWindow::FileName
char * FileName
Definition: vtkFileOutputWindow.h:80
vtkFileOutputWindow::vtkFileOutputWindow
vtkFileOutputWindow()
vtkFileOutputWindow::~vtkFileOutputWindow
~vtkFileOutputWindow() override
vtkFileOutputWindow::New
static vtkFileOutputWindow * New()
vtkOutputWindow.h
vtkFileOutputWindow::Flush
vtkTypeBool Flush
Definition: vtkFileOutputWindow.h:82
vtkFileOutputWindow::Initialize
void Initialize()
vtkFileOutputWindow::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOutputWindow
base class for writing debug output to a console
Definition: vtkOutputWindow.h:52
vtkFileOutputWindow::Append
vtkTypeBool Append
Definition: vtkFileOutputWindow.h:83
vtkFileOutputWindow
File Specific output window class.
Definition: vtkFileOutputWindow.h:31
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkFileOutputWindow::DisplayText
void DisplayText(const char *) override
Put the text into the log file.
vtkFileOutputWindow::OStream
ostream * OStream
Definition: vtkFileOutputWindow.h:81
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69