Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
00027 #ifndef __vtkWin32ProcessOutputWindow_h
00028 #define __vtkWin32ProcessOutputWindow_h
00029 
00030 #include "vtkOutputWindow.h"
00031 
00032 class VTK_COMMON_EXPORT vtkWin32ProcessOutputWindow : public vtkOutputWindow
00033 {
00034 public:
00035   vtkTypeRevisionMacro(vtkWin32ProcessOutputWindow,vtkOutputWindow);
00036   static vtkWin32ProcessOutputWindow* New();
00037   virtual void PrintSelf(ostream& os, vtkIndent indent);
00038 
00040   virtual void DisplayText(const char*);
00041 
00042 protected:
00043   vtkWin32ProcessOutputWindow();
00044   ~vtkWin32ProcessOutputWindow();
00045 
00046   int Initialize();
00047   void Write(const char* data, int length);
00048 
00049   // The write end of the pipe to the child process.
00050   vtkWindowsHANDLE OutputPipe;
00051 
00052   // Whether the pipe has been broken.
00053   int Broken;
00054 
00055   // Count the number of times a new child has been initialized.
00056   unsigned int Count;
00057 private:
00058   vtkWin32ProcessOutputWindow(const vtkWin32ProcessOutputWindow&);  // Not implemented.
00059   void operator=(const vtkWin32ProcessOutputWindow&);  // Not implemented.
00060 };
00061 
00062 #endif

Generated on Mon Jan 21 23:07:18 2008 for VTK by  doxygen 1.4.3-20050530