VTK  9.3.0
vtkFileOutputWindow.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkFileOutputWindow_h
25 #define vtkFileOutputWindow_h
26 
27 #include "vtkCommonCoreModule.h" // For export macro
28 #include "vtkOutputWindow.h"
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
32 {
33 public:
35 
37 
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
44  void DisplayText(const char*) override;
45 
47 
53 
55 
59  vtkSetMacro(Flush, vtkTypeBool);
60  vtkGetMacro(Flush, vtkTypeBool);
61  vtkBooleanMacro(Flush, vtkTypeBool);
63 
65 
71  vtkSetMacro(Append, vtkTypeBool);
72  vtkGetMacro(Append, vtkTypeBool);
73  vtkBooleanMacro(Append, vtkTypeBool);
75 
76 protected:
79  void Initialize();
80 
81  char* FileName;
82  ostream* OStream;
85 
86 private:
88  void operator=(const vtkFileOutputWindow&) = delete;
89 };
90 
91 VTK_ABI_NAMESPACE_END
92 #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:38
base class for writing debug output to a console
int vtkTypeBool
Definition: vtkABI.h:64