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
15#ifndef vtkFileOutputWindow_h
16#define vtkFileOutputWindow_h
17
18#include "vtkCommonCoreModule.h" // For export macro
19#include "vtkOutputWindow.h"
20
21VTK_ABI_NAMESPACE_BEGIN
22class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
23{
24public:
26
28
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
35 void DisplayText(const char*) override;
36
38
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
67protected:
70 void Initialize();
71
72 char* FileName;
73 ostream* OStream;
76
77private:
79 void operator=(const vtkFileOutputWindow&) = delete;
80};
81
82VTK_ABI_NAMESPACE_END
83#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:29
base class for writing debug output to a console
int vtkTypeBool
Definition vtkABI.h:64