VTK
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 =========================================================================*/
27 #ifndef vtkWin32ProcessOutputWindow_h
28 #define vtkWin32ProcessOutputWindow_h
29 
30 #include "vtkCommonCoreModule.h" // For export macro
31 #include "vtkOutputWindow.h"
32 
34 {
35 public:
38  virtual void PrintSelf(ostream& os, vtkIndent indent);
39 
41  virtual void DisplayText(const char*);
42 
43 protected:
46 
47  int Initialize();
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 private:
59  vtkWin32ProcessOutputWindow(const vtkWin32ProcessOutputWindow&); // Not implemented.
60  void operator=(const vtkWin32ProcessOutputWindow&); // Not implemented.
61 };
62 
63 #endif
vtkWin32ProcessOutputWindow::DisplayText
virtual void DisplayText(const char *)
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
VTKCOMMONCORE_EXPORT
#define VTKCOMMONCORE_EXPORT
Definition: vtkCommonCoreModule.h:15
vtkWin32ProcessOutputWindow::Count
unsigned int Count
Definition: vtkWin32ProcessOutputWindow.h:57
vtkWin32ProcessOutputWindow::OutputPipe
vtkWindowsHANDLE OutputPipe
Definition: vtkWin32ProcessOutputWindow.h:51
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkOutputWindow.h
vtkgl::length
GLuint GLsizei GLsizei * length
Definition: vtkgl.h:11992
vtkCommonCoreModule.h
vtkOutputWindow
base class for writing debug output to a console
Definition: vtkOutputWindow.h:50
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkWin32ProcessOutputWindow
Win32-specific output window class.
Definition: vtkWin32ProcessOutputWindow.h:34
vtkWin32ProcessOutputWindow::New
static vtkWin32ProcessOutputWindow * New()
vtkWin32ProcessOutputWindow::vtkWin32ProcessOutputWindow
vtkWin32ProcessOutputWindow()
vtkWin32ProcessOutputWindow::Initialize
int Initialize()
vtkWin32ProcessOutputWindow::Broken
int Broken
Definition: vtkWin32ProcessOutputWindow.h:54
vtkWin32ProcessOutputWindow::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkWin32ProcessOutputWindow::Write
void Write(const char *data, size_t length)
vtkWin32ProcessOutputWindow::~vtkWin32ProcessOutputWindow
~vtkWin32ProcessOutputWindow()