#include <process.h>


Public Member Functions | |
| Process () | |
| virtual | ~Process () |
| void | command (const char *script, const char *description) |
| void | vcommand (const char *script,...) |
| void | spawn () |
| void | spawn (const char *script, const char *description) |
| void | vspawn (const char *script,...) |
| ExitStatus | exec () |
| ExitStatus | exec (const char *script, const char *description) |
| virtual void | died (ExitStatus s) |
| bool | has_died () const |
Public Attributes | |
| ExitStatus | exitstatus |
Protected Attributes | |
| char * | cmd |
| char * | description |
| bool | _died |
| Process::Process | ( | ) | [inline] |
| virtual Process::~Process | ( | ) | [inline, virtual] |
References cmd, and description.
| void Process::command | ( | const char * | script, | |
| const char * | description | |||
| ) |
sets the command to execute
References cmd, and description.
Referenced by exec(), spawn(), SongProcess::start(), and vcommand().
| void Process::died | ( | ExitStatus | s | ) | [virtual] |
The died virtual will be called from a random thread to notify the termination of the command. BEWARE: the thread is not necessarily the same as the one used to initiate poll_death.
Reimplemented in TestProcess.
References _died, description, exitstatus, ExitStatus::pid, and ExitStatus::statusText().
| ExitStatus Process::exec | ( | const char * | script, | |
| const char * | description | |||
| ) |
| ExitStatus Process::exec | ( | ) |
References _died, assert(), cmd, description, exitstatus, ExitStatus::pid, poll_death(), and spawn().
Referenced by exec(), exec(), and TestProcess::TestProcess().
| bool Process::has_died | ( | ) | const [inline] |
References _died.
| void Process::spawn | ( | const char * | script, | |
| const char * | description | |||
| ) |
| void Process::spawn | ( | ) |
References assert(), cmd, description, exitstatus, and ExitStatus::pid.
Referenced by exec(), spawn(), SongProcess::start(), and TestProcess::TestProcess().
| void Process::vcommand | ( | const char * | script, | |
| ... | ||||
| ) |
References command().
Referenced by TestProcess::TestProcess().
| void Process::vspawn | ( | const char * | script, | |
| ... | ||||
| ) |
bool Process::_died [protected] |
Referenced by died(), exec(), and has_died().
char* Process::cmd [protected] |
Referenced by command(), exec(), spawn(), and ~Process().
char* Process::description [protected] |
Referenced by command(), died(), exec(), spawn(), and ~Process().
1.6.2