VTK  9.3.20240424
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
34#ifndef vtkFileOutputWindow_h
35#define vtkFileOutputWindow_h
36
37#include "vtkCommonCoreModule.h" // For export macro
38#include "vtkOutputWindow.h"
39
40VTK_ABI_NAMESPACE_BEGIN
41class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
42{
43public:
45
47
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
54 void DisplayText(const char*) override;
55
57
63
65
69 vtkSetMacro(Flush, vtkTypeBool);
70 vtkGetMacro(Flush, vtkTypeBool);
71 vtkBooleanMacro(Flush, vtkTypeBool);
73
75
81 vtkSetMacro(Append, vtkTypeBool);
82 vtkGetMacro(Append, vtkTypeBool);
83 vtkBooleanMacro(Append, vtkTypeBool);
85
86protected:
89 void Initialize();
90
91 char* FileName;
92 ostream* OStream;
95
96private:
98 void operator=(const vtkFileOutputWindow&) = delete;
99};
100
101VTK_ABI_NAMESPACE_END
102#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:108
base class for writing debug output to a console
int vtkTypeBool
Definition vtkABI.h:64