Exec_process Class Reference

#include <execbox.h>

Collaboration diagram for Exec_process:

Collaboration graph
[legend]
List of all members.

Public Types

typedef void(*) Reader_fun (char *data, int datalen, int exit_code, gpointer user_data)

Public Member Functions

 Exec_process ()
 ~Exec_process ()
void kill_child ()
void read_from_child (int id)
bool exec (const char *file, char *argv[], Reader_fun rfun, void *udata)
bool check_child (int &exit_code)

Private Attributes

int child_stdin
int child_stdout
int child_stderr
int child_pid
gint stdout_tag
gint stderr_tag
Reader_fun reader
void * reader_data

Detailed Description

Definition at line 43 of file execbox.h.


Member Typedef Documentation

typedef void(*) Exec_process::Reader_fun(char *data, int datalen, int exit_code, gpointer user_data)

Definition at line 49 of file execbox.h.


Constructor & Destructor Documentation

Exec_process::Exec_process (  ) 

Definition at line 50 of file execbox.cc.

Exec_process::~Exec_process (  ) 

Definition at line 62 of file execbox.cc.


Member Function Documentation

void Exec_process::kill_child (  ) 

Definition at line 73 of file execbox.cc.

void Exec_process::read_from_child ( int  id  ) 

Definition at line 107 of file execbox.cc.

References len, and Obj_flags::read.

Referenced by Read_from_child().

bool Exec_process::exec ( const char *  file,
char *  argv[],
Reader_fun  rfun,
void *  udata 
)

Definition at line 161 of file execbox.cc.

References Close_pipe(), Close_pipes(), and Read_from_child().

Here is the call graph for this function:

bool Exec_process::check_child ( int &  exit_code  ) 

Definition at line 226 of file execbox.cc.


Member Data Documentation

int Exec_process::child_stdin [private]

Definition at line 53 of file execbox.h.

int Exec_process::child_stdout [private]

Definition at line 53 of file execbox.h.

int Exec_process::child_stderr [private]

Definition at line 53 of file execbox.h.

int Exec_process::child_pid [private]

Definition at line 54 of file execbox.h.

gint Exec_process::stdout_tag [private]

Definition at line 55 of file execbox.h.

gint Exec_process::stderr_tag [private]

Definition at line 55 of file execbox.h.

Reader_fun Exec_process::reader [private]

Definition at line 56 of file execbox.h.

void* Exec_process::reader_data [private]

Definition at line 57 of file execbox.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:50:30 2007 for ExultEngine by  doxygen 1.5.1