|
Public Member Functions |
| ShellExecutor (IN(RString) cmdline, int flags, IN(RStringArray) env=Nil) |
void | setCommandLine (IN(RString) cmdline) |
void | setWorkingDir (IN(RString) wdir) |
| set the working directory where to execute the program If it is not set uses the working directory of the parent process
|
virtual bool | execute (IN(RProps) props) |
| run the external programm
|
RString | getOutString () |
| after returning from execute() this method returns the standard output of the executable
|
RString | getErrString () |
| after returning from execute() this method returns the error output of the executable
|
void | setOutWriter (IN(::acdk::io::RCharWriter) outWriter) |
| Set the writer, where to write the standard output By default the output will be collected in a string which can be retrived via getOutString().
|
void | setErrWriter (IN(::acdk::io::RCharWriter) errWriter) |
| Set the writer, where to write the standard output By default the output will be collected in a string which can be retrived via getOutString().
|
int | getTimeout () |
| see _timeOut
|
void | setTimeOut (int timeOut) |
| see _timeOut
|
void | evaluateOptions (IN(RProps) props) |
Static Public Member Functions |
RString | getShell (IN(RProps) props) |
RString | getShellExecuteOpt (IN(RProps) props) |
Private Attributes |
RString | _cmdline |
int | _flags |
RStringArray | _env |
RString | _workDir |
RString | _outs |
RString | _errs |
::acdk::io::RCharWriter | _outWriter |
::acdk::io::RCharWriter | _errWriter |
int | _timeOut |
| timeout in ms waiting for process by default -1, wait forever
|