VTK  9.2.6
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=========================================================================*/
27#ifndef vtkFileOutputWindow_h
28#define vtkFileOutputWindow_h
29
30#include "vtkCommonCoreModule.h" // For export macro
31#include "vtkOutputWindow.h"
32
33class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
34{
35public:
37
39
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
46 void DisplayText(const char*) override;
47
49
55
57
61 vtkSetMacro(Flush, vtkTypeBool);
62 vtkGetMacro(Flush, vtkTypeBool);
63 vtkBooleanMacro(Flush, vtkTypeBool);
65
67
73 vtkSetMacro(Append, vtkTypeBool);
74 vtkGetMacro(Append, vtkTypeBool);
75 vtkBooleanMacro(Append, vtkTypeBool);
77
78protected:
81 void Initialize();
82
83 char* FileName;
84 ostream* OStream;
87
88private:
90 void operator=(const vtkFileOutputWindow&) = delete;
91};
92
93#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:40
base class for writing debug output to a console
int vtkTypeBool
Definition vtkABI.h:69