3 #ifndef vtkExecutableRunner_h
4 #define vtkExecutableRunner_h
6 #include "vtkCommonSystemModule.h"
9 #include "vtksys/Process.h"
28 VTK_ABI_NAMESPACE_BEGIN
52 vtkSetMacro(Timeout,
double);
53 vtkGetMacro(Timeout,
double);
62 vtkSetMacro(RightTrimResult,
bool);
63 vtkGetMacro(RightTrimResult,
bool);
64 vtkBooleanMacro(RightTrimResult,
bool);
71 vtkGetCharFromStdStringMacro(Command);
72 vtkSetStdStringFromCharMacro(Command);
83 vtkSetMacro(ExecuteInSystemShell,
bool);
84 vtkGetMacro(ExecuteInSystemShell,
bool);
85 vtkBooleanMacro(ExecuteInSystemShell,
bool);
96 virtual void ClearArguments();
97 virtual vtkIdType GetNumberOfArguments()
const;
104 vtkGetCharFromStdStringMacro(StdOut);
105 vtkGetCharFromStdStringMacro(StdErr);
113 vtkGetMacro(ReturnValue,
int);
119 std::vector<std::string> GetCommandToExecute()
const;
120 int ExitProcess(vtksysProcess* process);
126 bool RightTrimResult =
true;
129 int ReturnValue = -1;
130 bool ExecuteInSystemShell =
true;
131 std::vector<std::string> Arguments;
137 VTK_ABI_NAMESPACE_END
138 #endif // vtkExecutableRunner_h
abstract base class for most VTK objects
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Launch a process on the current machine and get its output.
a simple class to control print indentation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...