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 "vtkParallelCoreModule.h" // For export macro
44 #include "vtkObject.h"
45 
47 
49 {
50 public:
51  vtkTypeMacro(vtkProcess,vtkObject);
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
56  virtual void Execute()=0;
57 
60  vtkMultiProcessController *GetController();
61 
64  void SetController(vtkMultiProcessController *aController);
65 
67  int GetReturnValue();
68 
69 protected:
70  vtkProcess();
71 
74 
75 private:
76  vtkProcess(const vtkProcess&); // Not implemented.
77  void operator=(const vtkProcess&); // Not implemented.
78 };
79 
80 #endif
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKPARALLELCORE_EXPORT
a process that can be launched by a vtkMultiProcessController
Definition: vtkProcess.h:48
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkMultiProcessController * Controller
Definition: vtkProcess.h:72
int ReturnValue
Definition: vtkProcess.h:73
Multiprocessing communication superclass.