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=========================================================================*/
43#ifndef vtkFileOutputWindow_h
44#define vtkFileOutputWindow_h
45
46#include "vtkCommonCoreModule.h" // For export macro
47#include "vtkOutputWindow.h"
48
49class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
50{
51public:
53
55
56 void PrintSelf(ostream& os, vtkIndent indent) override;
57
62 void DisplayText(const char*) override;
63
65
71
73
77 vtkSetMacro(Flush, vtkTypeBool);
78 vtkGetMacro(Flush, vtkTypeBool);
79 vtkBooleanMacro(Flush, vtkTypeBool);
81
83
89 vtkSetMacro(Append, vtkTypeBool);
90 vtkGetMacro(Append, vtkTypeBool);
91 vtkBooleanMacro(Append, vtkTypeBool);
93
94protected:
97 void Initialize();
98
99 char* FileName;
100 ostream* OStream;
103
104private:
106 void operator=(const vtkFileOutputWindow&) = delete;
107};
108
109#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:113
base class for writing debug output to a console
int vtkTypeBool
Definition: vtkABI.h:69