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 =========================================================================*/
24 #ifndef vtkFileOutputWindow_h
25 #define vtkFileOutputWindow_h
26 
27 #include "vtkCommonCoreModule.h" // For export macro
28 #include "vtkOutputWindow.h"
29 
30 class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
31 {
32 public:
34 
36 
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
43  void DisplayText(const char*) override;
44 
46 
52 
54 
58  vtkSetMacro(Flush, vtkTypeBool);
59  vtkGetMacro(Flush, vtkTypeBool);
60  vtkBooleanMacro(Flush, vtkTypeBool);
62 
64 
70  vtkSetMacro(Append, vtkTypeBool);
71  vtkGetMacro(Append, vtkTypeBool);
72  vtkBooleanMacro(Append, vtkTypeBool);
74 
75 protected:
78  void Initialize();
79 
80  char* FileName;
81  ostream* OStream;
84 
85 private:
87  void operator=(const vtkFileOutputWindow&) = delete;
88 };
89 
90 #endif
File Specific output window class.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkFileOutputWindow * New()
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:34
base class for writing debug output to a console
int vtkTypeBool
Definition: vtkABI.h:69