VTK
dox/Parallel/vtkProcess.h
Go to the documentation of this file.
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 "vtkObject.h"
00044 
00045 class vtkMultiProcessController;
00046 
00047 class VTK_PARALLEL_EXPORT vtkProcess : public vtkObject
00048 {
00049 public:
00050   vtkTypeMacro(vtkProcess,vtkObject);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052   
00055   virtual void Execute()=0;
00056   
00059   vtkMultiProcessController *GetController();
00060   
00063   void SetController(vtkMultiProcessController *aController);
00064   
00066   int GetReturnValue();
00067 
00068 protected:
00069   vtkProcess();
00070   
00071   vtkMultiProcessController *Controller;
00072   int ReturnValue;
00073   
00074 private:
00075   vtkProcess(const vtkProcess&);  // Not implemented.
00076   void operator=(const vtkProcess&);  // Not implemented.
00077 };
00078 
00079 #endif