Nebula
|
#include <processbase.h>
Base class for launching an external application.
Inherited by Posix::PosixProcess, and Win32::Win32Process.
Public Member Functions | |
Process () | |
constructor | |
void | SetExecutable (const IO::URI &uri) |
set the executable path | |
void | SetWorkingDirectory (const IO::URI &uri) |
set working directory | |
void | SetArguments (const Util::String &args) |
set command line arguments | |
void | SetNoConsoleWindow (bool b) |
do not open a console window for the new process | |
void | SetStdoutCaptureStream (const Ptr< IO::Stream > &stream) |
set optional stdout capture stream | |
const Ptr< IO::Stream > & | GetStdoutCaptureStream () const |
get optional pointer to stdout capture stream | |
void | SetStderrCaptureStream (const Ptr< IO::Stream > &stream) |
set optional stderr capture stream | |
const Ptr< IO::Stream > & | GetStderrCaptureStream () const |
get optional pointer to stderr capture stream | |
virtual bool | LaunchWait () const =0 |
launch application and wait for its termination | |
virtual bool | Launch ()=0 |
launch application (returns immediately) | |
virtual bool | IsRunning ()=0 |
Gets the state of application. Call this per frame. | |
virtual void | UpdateStdoutStream ()=0 |
Read data from the captured stdout and writes it to the stream. | |
virtual bool | CheckIfExists ()=0 |
Detect if an instance of the process is already running. | |
Protected Attributes | |
bool | noConsoleWindow |
bool | isRunning |
IO::URI | exePath |
IO::URI | workingDir |
Util::String | args |
Ptr< IO::Stream > | stdoutCaptureStream |
Ptr< IO::Stream > | stderrCaptureStream |
|
inline |
constructor
|
pure virtual |
Detect if an instance of the process is already running.
Implemented in Posix::PosixProcess, and Win32::Win32Process.
|
inline |
get optional pointer to stderr capture stream
|
inline |
get optional pointer to stdout capture stream
|
pure virtual |
Gets the state of application. Call this per frame.
Implemented in Posix::PosixProcess, and Win32::Win32Process.
|
pure virtual |
launch application (returns immediately)
Implemented in Posix::PosixProcess, and Win32::Win32Process.
|
pure virtual |
launch application and wait for its termination
Implemented in Posix::PosixProcess, and Win32::Win32Process.
|
inline |
set command line arguments
|
inline |
set the executable path
|
inline |
do not open a console window for the new process
|
inline |
set optional stderr capture stream
|
inline |
set optional stdout capture stream
|
inline |
set working directory
|
pure virtual |
Read data from the captured stdout and writes it to the stream.
Implemented in Posix::PosixProcess, and Win32::Win32Process.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |