VTK  9.2.6
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=========================================================================*/
37
38#ifndef vtkProcess_h
39#define vtkProcess_h
40
41#include "vtkObject.h"
42#include "vtkParallelCoreModule.h" // For export macro
43
45
46class VTKPARALLELCORE_EXPORT vtkProcess : public vtkObject
47{
48public:
49 vtkTypeMacro(vtkProcess, vtkObject);
50 void PrintSelf(ostream& os, vtkIndent indent) override;
51
56 virtual void Execute() = 0;
57
63
69
74
75protected:
77 ~vtkProcess() override;
78
81
82private:
83 vtkProcess(const vtkProcess&) = delete;
84 void operator=(const vtkProcess&) = delete;
85};
86
87#endif
a simple class to control print indentation
Definition vtkIndent.h:34
Multiprocessing communication superclass.
int ReturnValue
Definition vtkProcess.h:80
vtkMultiProcessController * GetController()
Give access to the controller that launched the process.
virtual void Execute()=0
Entry point of the process.
void SetController(vtkMultiProcessController *aController)
This method should not be called directly but set by the controller itself.
int GetReturnValue()
Value set at the end of a call to Execute.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkProcess() override
vtkMultiProcessController * Controller
Definition vtkProcess.h:79