VTK  9.3.1
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
15 #ifndef vtkFileOutputWindow_h
16 #define vtkFileOutputWindow_h
17 
18 #include "vtkCommonCoreModule.h" // For export macro
19 #include "vtkOutputWindow.h"
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
23 {
24 public:
26 
27  static vtkFileOutputWindow* New();
28 
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
35  void DisplayText(const char*) override;
36 
38 
41  vtkSetFilePathMacro(FileName);
42  vtkGetFilePathMacro(FileName);
44 
46 
50  vtkSetMacro(Flush, vtkTypeBool);
51  vtkGetMacro(Flush, vtkTypeBool);
52  vtkBooleanMacro(Flush, vtkTypeBool);
54 
56 
62  vtkSetMacro(Append, vtkTypeBool);
63  vtkGetMacro(Append, vtkTypeBool);
64  vtkBooleanMacro(Append, vtkTypeBool);
66 
67 protected:
69  ~vtkFileOutputWindow() override;
70  void Initialize();
71 
72  char* FileName;
73  ostream* OStream;
76 
77 private:
79  void operator=(const vtkFileOutputWindow&) = delete;
80 };
81 
82 VTK_ABI_NAMESPACE_END
83 #endif
virtual void DisplayText(const char *)
Display the text.
static vtkOutputWindow * New()
Creates a new instance of vtkOutputWindow.
File Specific output window class.
int vtkTypeBool
Definition: vtkABI.h:64
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Print ObjectFactor to stream.
base class for writing debug output to a console