VTK
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
33
34class VTKCOMMONCORE_EXPORT vtkFileOutputWindow : public vtkOutputWindow
35{
36public:
38
40
41 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
42
47 void DisplayText(const char*) VTK_OVERRIDE;
48
50
53 vtkSetStringMacro(FileName);
56
58
62 vtkSetMacro(Flush, int);
63 vtkGetMacro(Flush, int);
64 vtkBooleanMacro(Flush, int);
66
68
74 vtkSetMacro(Append, int);
75 vtkGetMacro(Append, int);
76 vtkBooleanMacro(Append, int);
78
79protected:
81 ~vtkFileOutputWindow() VTK_OVERRIDE;
82 void Initialize();
83
84 char* FileName;
85 ofstream* OStream;
86 int Flush;
87 int Append;
88
89private:
90 vtkFileOutputWindow(const vtkFileOutputWindow&) VTK_DELETE_FUNCTION;
91 void operator=(const vtkFileOutputWindow&) VTK_DELETE_FUNCTION;
92};
93
94
95#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.
void DisplayText(const char *) override
Put the text into 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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.