VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkProcess.h 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 =========================================================================*/ 00040 #ifndef __vtkProcess_h 00041 #define __vtkProcess_h 00042 00043 #include "vtkParallelCoreModule.h" // For export macro 00044 #include "vtkObject.h" 00045 00046 class vtkMultiProcessController; 00047 00048 class VTKPARALLELCORE_EXPORT vtkProcess : public vtkObject 00049 { 00050 public: 00051 vtkTypeMacro(vtkProcess,vtkObject); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00056 virtual void Execute()=0; 00057 00060 vtkMultiProcessController *GetController(); 00061 00064 void SetController(vtkMultiProcessController *aController); 00065 00067 int GetReturnValue(); 00068 00069 protected: 00070 vtkProcess(); 00071 00072 vtkMultiProcessController *Controller; 00073 int ReturnValue; 00074 00075 private: 00076 vtkProcess(const vtkProcess&); // Not implemented. 00077 void operator=(const vtkProcess&); // Not implemented. 00078 }; 00079 00080 #endif