VTK  9.5.20250805
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
20VTK_ABI_NAMESPACE_BEGIN
21
22class VTKPARALLELCORE_EXPORT vtkPExecutableRunner : public vtkExecutableRunner
23{
24public:
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
45protected:
47 ~vtkPExecutableRunner() override = default;
48
49private:
50 int ExecutionProcessId = 0;
51
53 void operator=(const vtkPExecutableRunner&) = delete;
54};
55
56VTK_ABI_NAMESPACE_END
57#endif
Launch a process on the current machine and get its output.
a simple class to control print indentation
Definition vtkIndent.h:108
vtkPExecutableRunner provides a way to launch commands processes and control for multi-process use ca...
void Execute() override
This function will check the ExecutionProcessId and then execute using Superclass implementation if i...
~vtkPExecutableRunner() override=default
vtkPExecutableRunner()=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkPExecutableRunner * New()