VTK
vtkProcess.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkProcess.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 =========================================================================*/
40 #ifndef __vtkProcess_h
41 #define __vtkProcess_h
42 
43 #include "vtkObject.h"
44 
46 
48 {
49 public:
50  vtkTypeMacro(vtkProcess,vtkObject);
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
55  virtual void Execute()=0;
56 
59  vtkMultiProcessController *GetController();
60 
63  void SetController(vtkMultiProcessController *aController);
64 
66  int GetReturnValue();
67 
68 protected:
69  vtkProcess();
70 
73 
74 private:
75  vtkProcess(const vtkProcess&); // Not implemented.
76  void operator=(const vtkProcess&); // Not implemented.
77 };
78 
79 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:60
a process that can be launched by a vtkMultiProcessController
Definition: vtkProcess.h:47
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
#define VTK_PARALLEL_EXPORT
vtkMultiProcessController * Controller
Definition: vtkProcess.h:71
int ReturnValue
Definition: vtkProcess.h:72
Multiprocessing communication superclass.