MeVisLab Scripting Reference
|
Inherits QProcess, and QObject.
Inherited by MLABOutputDiscardingProcess, and MLABOutputRecordingProcess.
Public Slots | |
Script access | |
| |
void | addArgument (const QString &arg) |
void | addArguments (const QStringList &args) |
void | clearArguments () |
void | setArgs (const QString &cmd, const QString &args) |
void | setWorkDir (const QString &wd) |
void | setStdOutHandler (MLABModule *mod, const QString &script) |
void | setStdErrHandler (MLABModule *mod, const QString &script) |
void | setExitedHandler (MLABModule *mod, const QString &script) |
void | setLaunchFinishedHandler (MLABModule *mod, const QString &script) |
bool | run (const QString &stdinput) |
bool | run () |
void | waitForLaunch () |
void | waitForExit () |
bool | normalExit () |
bool | isRunning () |
bool | launchFinished () |
void | setUserInfo (const QString &info) |
QString | userInfo () |
QString | readStdOut () |
QString | readStdErr () |
QString | readLineStdOut () |
QString | readLineStdErr () |
int | exitStatus () |
void | kill () |
qint64 | processId () |
void | setInheritHandles (bool inherit) |
bool | doesInheritHandles () const |
MLABProcess object available via MLAB.
The MLABProcess object can be used to have full control of started processes. For simpler functions, see MLAB API.
Note that the process object behaves differently on different platforms!
|
slot |
Adds an argument, first argument added is the called program.
|
slot |
Adds an argument list, first argument is the called program.
|
slot |
Clears the arguments.
|
inlineslot |
Returns whether the process should inherit all file handles of the parent process.
|
inlineslot |
Returns the exit status of the process.
|
slot |
Returns whether the process is currently running.
|
inlineslot |
Kills the running process (more than just deleting the MLABProcess, it really kills the running process!).
|
inlineslot |
Returns whether the launch is finished (it is safe to delete the process afterwards).
|
slot |
Returns whether the process exited normally, i.e., did not crash.
|
inlineslot |
Returns the process ID of the process.
|
slot |
Returns one line of error output.
|
slot |
Returns one line of std output.
|
slot |
Returns the whole error output currently available, does not return the same output a second time!
|
slot |
Returns the whole std output currently available, does not return the same output a second time!
|
slot |
Runs the process.
|
slot |
Runs the process with given std input.
|
slot |
Sets the command and the arguments.
Arguments are split by spaces, so this format does not support argument entries that contain spaces. Use the addArguments() method instead.
|
slot |
Sets a handler that is called when the process exited.
|
inlineslot |
Sets whether the process should inherit all file handles of the parent process. Default is false
.
|
slot |
Sets a handler that is called when the process launch (and stdin args passing) is complete.
|
slot |
Sets an error handler that is called when new output is available.
|
slot |
Sets a std output handler that is called when new output is available.
|
inlineslot |
Sets user information for this process.
|
slot |
Sets the working directory.
|
inlineslot |
Returns user information for this process.
|
slot |
Waits until the running process exits.
|
slot |
Waits until the process is completely launched (before this, it is not safe to delete the process!).