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
30VTK_ABI_NAMESPACE_BEGIN
31class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
32{
33public:
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
76protected:
79 void Initialize();
80
81 char* FileName;
82 ostream* OStream;
85
86private:
88 void operator=(const vtkFileOutputWindow&) = delete;
89};
90
91VTK_ABI_NAMESPACE_END
92#endif
File Specific output window class.
static vtkFileOutputWindow * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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