VTK  9.1.0
vtkFileOutputWindow.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkFileOutputWindow.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
33#ifndef vtkFileOutputWindow_h
34#define vtkFileOutputWindow_h
35
36#include "vtkCommonCoreModule.h" // For export macro
37#include "vtkOutputWindow.h"
38
39class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
40{
41public:
43
45
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
52 void DisplayText(const char*) override;
53
55
61
63
67 vtkSetMacro(Flush, vtkTypeBool);
68 vtkGetMacro(Flush, vtkTypeBool);
69 vtkBooleanMacro(Flush, vtkTypeBool);
71
73
79 vtkSetMacro(Append, vtkTypeBool);
80 vtkGetMacro(Append, vtkTypeBool);
81 vtkBooleanMacro(Append, vtkTypeBool);
83
84protected:
87 void Initialize();
88
89 char* FileName;
90 ostream* OStream;
93
94private:
96 void operator=(const vtkFileOutputWindow&) = delete;
97};
98
99#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:43
base class for writing debug output to a console
int vtkTypeBool
Definition: vtkABI.h:69