VTK  9.2.20220703
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 =========================================================================*/
46 #ifndef vtkFileOutputWindow_h
47 #define vtkFileOutputWindow_h
48 
49 #include "vtkCommonCoreModule.h" // For export macro
50 #include "vtkOutputWindow.h"
51 
52 class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
53 {
54 public:
56 
58 
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
65  void DisplayText(const char*) override;
66 
68 
74 
76 
80  vtkSetMacro(Flush, vtkTypeBool);
81  vtkGetMacro(Flush, vtkTypeBool);
82  vtkBooleanMacro(Flush, vtkTypeBool);
84 
86 
92  vtkSetMacro(Append, vtkTypeBool);
93  vtkGetMacro(Append, vtkTypeBool);
94  vtkBooleanMacro(Append, vtkTypeBool);
96 
97 protected:
100  void Initialize();
101 
102  char* FileName;
103  ostream* OStream;
106 
107 private:
108  vtkFileOutputWindow(const vtkFileOutputWindow&) = delete;
109  void operator=(const vtkFileOutputWindow&) = delete;
110 };
111 
112 #endif
File Specific output window class.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkFileOutputWindow * New()
vtkGetFilePathMacro(FileName)
Sets the name for the log file.
void DisplayText(const char *) override
Put the text into the log file.
vtkSetFilePathMacro(FileName)
Sets the name for the log file.
~vtkFileOutputWindow() override
a simple class to control print indentation
Definition: vtkIndent.h:119
base class for writing debug output to a console
int vtkTypeBool
Definition: vtkABI.h:69