VTK  9.2.6
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 =========================================================================*/
36 #ifndef vtkFileOutputWindow_h
37 #define vtkFileOutputWindow_h
38 
39 #include "vtkCommonCoreModule.h" // For export macro
40 #include "vtkOutputWindow.h"
41 
42 class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
43 {
44 public:
46 
48 
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
55  void DisplayText(const char*) override;
56 
58 
64 
66 
70  vtkSetMacro(Flush, vtkTypeBool);
71  vtkGetMacro(Flush, vtkTypeBool);
72  vtkBooleanMacro(Flush, vtkTypeBool);
74 
76 
82  vtkSetMacro(Append, vtkTypeBool);
83  vtkGetMacro(Append, vtkTypeBool);
84  vtkBooleanMacro(Append, vtkTypeBool);
86 
87 protected:
90  void Initialize();
91 
92  char* FileName;
93  ostream* OStream;
96 
97 private:
99  void operator=(const vtkFileOutputWindow&) = delete;
100 };
101 
102 #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:49
base class for writing debug output to a console
int vtkTypeBool
Definition: vtkABI.h:69