You may register an observer for an ExternalProcessOutputEvent, ExternalProcessStdOutEvent or ExternalProcessStdErrEvent in order to get notified of any output.
More...
#include <mitkProcessExecutor.h>
|
| int | m_ExitValue |
| |
| bool | m_SharedOutputPipes |
| | Specifies if the child process should share the output pipes (true) or not (false). If pipes are not shared the output will be passed by invoking ExternalProcessOutputEvents. More...
|
| |
You may register an observer for an ExternalProcessOutputEvent, ExternalProcessStdOutEvent or ExternalProcessStdErrEvent in order to get notified of any output.
Definition at line 81 of file mitkProcessExecutor.h.
◆ ArgumentListType
◆ ConstPointer
◆ Pointer
◆ Self
◆ Superclass
◆ ProcessExecutor()
| mitk::ProcessExecutor::ProcessExecutor |
( |
| ) |
|
|
protected |
◆ ~ProcessExecutor()
| mitk::ProcessExecutor::~ProcessExecutor |
( |
| ) |
|
|
overrideprotected |
◆ EnsureCorrectOSPathSeparator()
| static std::string mitk::ProcessExecutor::EnsureCorrectOSPathSeparator |
( |
const std::string & |
path | ) |
|
|
static |
Converts path separators to the OS-correct form.
- Parameters
-
| [in] | path | The path string to convert. |
- Returns
- The path with correct OS-specific separators.
◆ Execute() [1/2]
| virtual bool mitk::ProcessExecutor::Execute |
( |
const std::string & |
executionPath, |
|
|
const ArgumentListType & |
argumentList |
|
) |
| |
|
virtual |
Executes an external process.
This version assumes that the executable name is the first argument in the argument list and has already been converted to its OS-dependent name.
- Parameters
-
| [in] | executionPath | Working directory for the process. |
| [in] | argumentList | Command-line arguments; first element is the executable. |
- Returns
- true if the process executed successfully, false otherwise.
◆ Execute() [2/2]
| bool mitk::ProcessExecutor::Execute |
( |
const std::string & |
executionPath, |
|
|
const std::string & |
executableName, |
|
|
ArgumentListType & |
argumentList |
|
) |
| |
Executes an external process.
- Parameters
-
| [in] | executionPath | Working directory for the process. |
| [in] | executableName | Name of the executable to run. |
| [in,out] | argumentList | Command-line arguments for the process. |
- Returns
- true if the process executed successfully, false otherwise.
◆ GetClassName()
| virtual const char* mitk::ProcessExecutor::GetClassName |
( |
| ) |
const |
|
virtual |
◆ GetExitValue()
| int mitk::ProcessExecutor::GetExitValue |
( |
| ) |
|
Returns the exit value of the last executed process.
- Returns
- The process exit code.
◆ GetOSDependendExecutableName()
| static std::string mitk::ProcessExecutor::GetOSDependendExecutableName |
( |
const std::string & |
name | ) |
|
|
static |
Returns the OS-dependent executable name (e.g. adds ".exe" on Windows).
- Parameters
-
| [in] | name | The platform-independent executable name. |
- Returns
- The OS-dependent executable name.
◆ GetSharedOutputPipes()
| virtual bool mitk::ProcessExecutor::GetSharedOutputPipes |
( |
| ) |
const |
|
virtual |
◆ KillProcess()
| void mitk::ProcessExecutor::KillProcess |
( |
| ) |
|
Kills the currently running process.
◆ New()
| static Pointer mitk::ProcessExecutor::New |
( |
| ) |
|
|
static |
◆ SetSharedOutputPipes()
| virtual void mitk::ProcessExecutor::SetSharedOutputPipes |
( |
bool |
_arg | ) |
|
|
virtual |
◆ m_ExitValue
| int mitk::ProcessExecutor::m_ExitValue |
|
protected |
◆ m_SharedOutputPipes
| bool mitk::ProcessExecutor::m_SharedOutputPipes |
|
protected |
Specifies if the child process should share the output pipes (true) or not (false). If pipes are not shared the output will be passed by invoking ExternalProcessOutputEvents.
Definition at line 155 of file mitkProcessExecutor.h.
The documentation for this class was generated from the following file: