Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkWin32ProcessOutputWindow.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkWin32ProcessOutputWindow.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00037 #ifndef __vtkWin32ProcessOutputWindow_h
00038 #define __vtkWin32ProcessOutputWindow_h
00039 
00040 #include "vtkOutputWindow.h"
00041 
00042 class VTK_COMMON_EXPORT vtkWin32ProcessOutputWindow : public vtkOutputWindow
00043 {
00044 public:
00045   vtkTypeRevisionMacro(vtkWin32ProcessOutputWindow,vtkOutputWindow);
00046   static vtkWin32ProcessOutputWindow* New();
00047   virtual void PrintSelf(ostream& os, vtkIndent indent);
00048 
00050   virtual void DisplayText(const char*);
00051 
00052 protected:
00053   vtkWin32ProcessOutputWindow();
00054   ~vtkWin32ProcessOutputWindow();
00055 
00056   int Initialize();
00057   void Write(const char* data, int length);
00058 
00059   // The write end of the pipe to the child process.
00060   HANDLE OutputPipe;
00061 
00062   // Whether the pipe has been broken.
00063   int Broken;
00064 
00065   // Count the number of times a new child has been initialized.
00066   unsigned int Count;
00067 private:
00068   vtkWin32ProcessOutputWindow(const vtkWin32ProcessOutputWindow&);  // Not implemented.
00069   void operator=(const vtkWin32ProcessOutputWindow&);  // Not implemented.
00070 };
00071 
00072 #endif