VTK  9.7.1
vtkPExecutableRunner.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkPExecutableRunner_h
15 #define vtkPExecutableRunner_h
16 
17 #include "vtkExecutableRunner.h"
18 #include "vtkParallelCoreModule.h" // For export macro
19 
20 VTK_ABI_NAMESPACE_BEGIN
21 
22 class VTKPARALLELCORE_EXPORT vtkPExecutableRunner : public vtkExecutableRunner
23 {
24 public:
25  static vtkPExecutableRunner* New();
27 
29 
33  vtkGetMacro(ExecutionProcessId, int);
34  vtkSetMacro(ExecutionProcessId, int);
36 
41  void Execute() override;
42 
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
45 protected:
46  vtkPExecutableRunner() = default;
47  ~vtkPExecutableRunner() override = default;
48 
49 private:
50  int ExecutionProcessId = 0;
51 
53  void operator=(const vtkPExecutableRunner&) = delete;
54 };
55 
56 VTK_ABI_NAMESPACE_END
57 #endif
vtkPExecutableRunner provides a way to launch commands processes and control for multi-process use ca...
virtual void Execute()
Execute the command currently set if any.
Launch a process on the current machine and get its output.
a simple class to control print indentation
Definition: vtkIndent.h:28
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkExecutableRunner * New()