VTK  9.3.20240423
vtkWin32ProcessOutputWindow.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
13#ifndef vtkWin32ProcessOutputWindow_h
14#define vtkWin32ProcessOutputWindow_h
15
16#include "vtkCommonCoreModule.h" // For export macro
17#include "vtkOutputWindow.h"
18
19VTK_ABI_NAMESPACE_BEGIN
20class VTKCOMMONCORE_EXPORT vtkWin32ProcessOutputWindow : public vtkOutputWindow
21{
22public:
25 void PrintSelf(ostream& os, vtkIndent indent) override;
26
30 void DisplayText(const char*) override;
31
32protected:
35
37 void Write(const char* data, size_t length);
38
39 // The write end of the pipe to the child process.
40 vtkWindowsHANDLE OutputPipe;
41
42 // Whether the pipe has been broken.
43 int Broken;
44
45 // Count the number of times a new child has been initialized.
46 unsigned int Count;
47
48private:
50 void operator=(const vtkWin32ProcessOutputWindow&) = delete;
51};
52
53VTK_ABI_NAMESPACE_END
54#endif
a simple class to control print indentation
Definition vtkIndent.h:108
base class for writing debug output to a console
Win32-specific output window class.
void Write(const char *data, size_t length)
static vtkWin32ProcessOutputWindow * New()
void DisplayText(const char *) override
Send text to the output window process.
void PrintSelf(ostream &os, vtkIndent indent) override
Print ObjectFactor to stream.