3#ifndef vtkExecutableRunner_h 
    4#define vtkExecutableRunner_h 
    6#include "vtkCommonSystemModule.h"  
    9#include "vtksys/Process.h"  
   28VTK_ABI_NAMESPACE_BEGIN
 
   52  vtkSetMacro(Timeout, 
double);
 
   53  vtkGetMacro(Timeout, 
double);
 
   62  vtkSetMacro(RightTrimResult, 
bool);
 
   63  vtkGetMacro(RightTrimResult, 
bool);
 
   64  vtkBooleanMacro(RightTrimResult, 
bool);
 
   83  vtkSetMacro(ExecuteInSystemShell, 
bool);
 
   84  vtkGetMacro(ExecuteInSystemShell, 
bool);
 
   85  vtkBooleanMacro(ExecuteInSystemShell, 
bool);
 
  113  vtkGetMacro(ReturnValue, 
int);
 
  116  vtkSetMacro(StdOut, std::string);
 
  117  vtkSetMacro(StdErr, std::string);
 
  126  bool RightTrimResult = 
true;
 
  129  int ReturnValue = -1;
 
  130  bool ExecuteInSystemShell = 
true;
 
  131  std::vector<std::string> Arguments;
 
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.
 
virtual void AddArgument(const std::string &arg)
API to control arguments passed to the command when ExecuteInSystemShell is false.
 
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)
Set/Get command to execute.
 
std::vector< std::string > GetCommandToExecute() const
 
vtkGetCharFromStdStringMacro(StdErr)
Get output of the previously run command.
 
virtual void ClearArguments()
API to control arguments passed to the command when ExecuteInSystemShell is false.
 
virtual vtkIdType GetNumberOfArguments() const
API to control arguments passed to the command when ExecuteInSystemShell is false.
 
a simple class to control print indentation
 
abstract base class for most VTK objects