15#ifndef vtkExecutableRunner_h
16#define vtkExecutableRunner_h
18#include "vtkCommonSystemModule.h"
21#include "vtksys/Process.h"
58 vtkSetMacro(Timeout,
double);
59 vtkGetMacro(Timeout,
double);
68 vtkSetMacro(RightTrimResult,
bool);
69 vtkGetMacro(RightTrimResult,
bool);
70 vtkBooleanMacro(RightTrimResult,
bool);
94 vtkGetMacro(ReturnValue,
int);
97 vtkSetMacro(StdOut, std::string);
98 vtkSetMacro(StdErr, std::string);
106 bool RightTrimResult =
true;
109 int ReturnValue = -1;
Launch a process on the current machine and get its output.
static vtkExecutableRunner * New()
int ExitProcess(vtksysProcess *process)
void Execute()
Execute the command currently set if any.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetCharFromStdStringMacro(StdOut)
Get output of the previously run command.
~vtkExecutableRunner() override=default
vtkGetCharFromStdStringMacro(Command)
Set/Get command to execute.
vtkExecutableRunner()=default
vtkSetStdStringFromCharMacro(Command)
vtkGetCharFromStdStringMacro(StdErr)
a simple class to control print indentation
abstract base class for most VTK objects