VTK  9.1.0
vtkWin32ProcessOutputWindow.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkWin32ProcessOutputWindow.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=========================================================================*/
25#ifndef vtkWin32ProcessOutputWindow_h
26#define vtkWin32ProcessOutputWindow_h
27
28#include "vtkCommonCoreModule.h" // For export macro
29#include "vtkOutputWindow.h"
30
31class VTKCOMMONCORE_EXPORT vtkWin32ProcessOutputWindow : public vtkOutputWindow
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
41 void DisplayText(const char*) override;
42
43protected:
46
48 void Write(const char* data, size_t length);
49
50 // The write end of the pipe to the child process.
51 vtkWindowsHANDLE OutputPipe;
52
53 // Whether the pipe has been broken.
54 int Broken;
55
56 // Count the number of times a new child has been initialized.
57 unsigned int Count;
58
59private:
61 void operator=(const vtkWin32ProcessOutputWindow&) = delete;
62};
63
64#endif
a simple class to control print indentation
Definition: vtkIndent.h:113
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.