VTK  9.3.1
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 
19 VTK_ABI_NAMESPACE_BEGIN
20 class VTKCOMMONCORE_EXPORT vtkWin32ProcessOutputWindow : public vtkOutputWindow
21 {
22 public:
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
30  void DisplayText(const char*) override;
31 
32 protected:
35 
36  int Initialize();
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 
48 private:
50  void operator=(const vtkWin32ProcessOutputWindow&) = delete;
51 };
52 
53 VTK_ABI_NAMESPACE_END
54 #endif
virtual void DisplayText(const char *)
Display the text.
static vtkOutputWindow * New()
Creates a new instance of vtkOutputWindow.
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Print ObjectFactor to stream.
base class for writing debug output to a console
Win32-specific output window class.