Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
acdk::cfgscript::ShellExecutor Class Reference
#include <ShellExecutor.h>
Inheritance diagram for acdk::cfgscript::ShellExecutor:
List of all members.
Detailed Description
General class to execute external programs.
Constructor & Destructor Documentation
acdk::cfgscript::ShellExecutor::ShellExecutor |
( |
IN(RString) |
cmdline, |
|
|
int |
flags, |
|
|
IN(RStringArray) |
env = Nil |
|
) |
[inline] |
|
|
- Parameters:
-
the | command line for the external programm to execute |
flags | a combination of ShellExecuteFlags |
env | Environment to use |
|
Member Function Documentation
void acdk::cfgscript::ShellExecutor::evaluateOptions |
( |
IN(RProps) |
props |
) |
|
|
virtual bool acdk::cfgscript::ShellExecutor::execute |
( |
IN(RProps) |
props |
) |
[virtual] |
|
|
run the external programm
|
RString acdk::cfgscript::ShellExecutor::getErrString |
( |
|
) |
[inline] |
|
|
after returning from execute() this method returns the error output of the executable
|
RString acdk::cfgscript::ShellExecutor::getOutString |
( |
|
) |
[inline] |
|
|
after returning from execute() this method returns the standard output of the executable
|
RString acdk::cfgscript::ShellExecutor::getShell |
( |
IN(RProps) |
props |
) |
[static] |
|
RString acdk::cfgscript::ShellExecutor::getShellExecuteOpt |
( |
IN(RProps) |
props |
) |
[static] |
|
int acdk::cfgscript::ShellExecutor::getTimeout |
( |
|
) |
[inline] |
|
void acdk::cfgscript::ShellExecutor::setCommandLine |
( |
IN(RString) |
cmdline |
) |
[inline] |
|
|
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().
|
|
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 acdk::cfgscript::ShellExecutor::setTimeOut |
( |
int |
timeOut |
) |
[inline] |
|
void acdk::cfgscript::ShellExecutor::setWorkingDir |
( |
IN(RString) |
wdir |
) |
[inline] |
|
|
set the working directory where to execute the program If it is not set uses the working directory of the parent process
|
Member Data Documentation
|
timeout in ms waiting for process by default -1, wait forever
|