#include <Pt/System/Process.h>
Executes shell commands.
Inherits NonCopyable.
Public Types | |
| enum | State { Ready = 0, Running = 1, Finished = 2, Failed = 3 } |
| State of the process. More... | |
Public Member Functions | |
| Process (const ProcessInfo &procInfo) | |
| Constructs with a process parameters. | |
| ~Process () | |
| Destructor. | |
| void | kill () |
| Kills the Process. More... | |
| const ProcessInfo & | procInfo () const |
| Returns the process parameters. | |
| void | start () |
| Start/Create the Process. More... | |
| State | state () const |
| Returns the current state. | |
| IODevice * | stdError () |
| Returns an I/O device to stderr. | |
| IODevice * | stdInput () |
| Returns an I/O device to stdin. | |
| IODevice * | stdOutput () |
| Returns an I/O device to stdout. | |
| int | wait () |
| Waits until the Process ends. More... | |
| enum State |
| void start | ( | ) |
| SystemError |
| void kill | ( | ) |
| SystemError |
| int wait | ( | ) |
| SystemError,ProcessFailed |