#include <Pt/System/Process.h>
Public Types | |
| enum | State { Ready = 0, Running = 1, Finished = 2, Failed = 3 } |
Public Member Functions | |
| Process (const std::string &commandline) | |
| Constructs a Process with a command including its arguments. | |
| Process (const ProcessInfo &procInfo) | |
| Constructs a Process with a process info structure. | |
| ~Process () | |
| Dtor. | |
| const ProcessInfo & | procInfo () const |
| State | state () const |
| void | start () |
| Start/Create the Process. | |
| void | kill () |
| Kills the Process. | |
| int | wait () |
| Waits until the Process ends. | |
Static Public Member Functions | |
| static void | setEnvVar (const std::string &name, const std::string &value) |
| Set environment variable. | |
| static void | unsetEnvVar (const std::string &name) |
| Unset environment variable. | |
| static std::string | getEnvVar (const std::string &name) |
| Get environment variable. | |
| static void | sleep (size_t milliSec) |
| Called Process Sleeps milliSec Seconds. | |
| static unsigned long | usedMemory () |
| Process | ( | const std::string & | commandline | ) |
| command | Name of the executable along with its arguments |
| void start | ( | ) |
| SystemError |
| void kill | ( | ) |
| SystemError |
| int wait | ( | ) |
| SystemError |
| static void setEnvVar | ( | const std::string & | name, | |
| const std::string & | value | |||
| ) | [static] |
| SystemError |
| static void unsetEnvVar | ( | const std::string & | name | ) | [static] |
| SystemError |
| static std::string getEnvVar | ( | const std::string & | name | ) | [static] |
| SystemError |
| static void sleep | ( | size_t | milliSec | ) | [static] |
| SystemError |