Process Class Reference

#include <process.h>

Inheritance diagram for Process:
Inheritance graph
[legend]
Collaboration diagram for Process:
Collaboration graph
[legend]

List of all members.

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

Constructor & Destructor Documentation

Process::Process (  )  [inline]
virtual Process::~Process (  )  [inline, virtual]

References cmd, and description.


Member Function Documentation

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 
)

References command(), and exec().

ExitStatus Process::exec (  ) 
bool Process::has_died (  )  const [inline]

References _died.

void Process::spawn ( const char *  script,
const char *  description 
)

References command(), and spawn().

void Process::spawn (  ) 
void Process::vcommand ( const char *  script,
  ... 
)

References command().

Referenced by TestProcess::TestProcess().

void Process::vspawn ( const char *  script,
  ... 
)

Member Data Documentation

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().

Referenced by died(), exec(), exec(), and spawn().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2