Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::Popen Class Reference

#include <Popen.h>

Inheritance diagram for PLearn::Popen:

Inheritance graph
[legend]
Collaboration diagram for PLearn::Popen:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Popen (const string &command, bool the_verbose=false)
 Popen (const string &command, const vector< string > &commandoptions, bool the_verbose=false)
int wait ()
 ~Popen ()

Public Attributes

pid_t pid
int fdin
int fdout
PStream in
PStream out

Protected Member Functions

void launch (const string &command, const vector< string > &commandoptions)
 multi-argument variant: the arguments

void launch (const string &command)
 full text variant: this one is interpreted like a console /bin/sh command


Protected Attributes

bool verbose
bool process_alive

Constructor & Destructor Documentation

PLearn::Popen::Popen const string command,
bool  the_verbose = false
[inline]
 

Definition at line 80 of file Popen.h.

References verbose.

PLearn::Popen::Popen const string command,
const vector< string > &  commandoptions,
bool  the_verbose = false
[inline]
 

Definition at line 84 of file Popen.h.

References verbose.

PLearn::Popen::~Popen  ) 
 

Definition at line 160 of file Popen.cc.

References fdin, fdout, pid, and process_alive.


Member Function Documentation

void PLearn::Popen::launch const string command  )  [protected]
 

full text variant: this one is interpreted like a console /bin/sh command

Definition at line 74 of file Popen.cc.

References PLearn::PStream::attach(), PLearn::endl(), fdin, fdout, in, out, pid, process_alive, and verbose.

void PLearn::Popen::launch const string command,
const vector< string > &  commandoptions
[protected]
 

multi-argument variant: the arguments

Definition at line 117 of file Popen.cc.

References PLearn::PStream::attach(), fdin, fdout, in, out, pid, and process_alive.

int PLearn::Popen::wait  ) 
 

Definition at line 150 of file Popen.cc.

References pid, and process_alive.


Member Data Documentation

int PLearn::Popen::fdin
 

Definition at line 75 of file Popen.h.

Referenced by launch(), and ~Popen().

int PLearn::Popen::fdout
 

Definition at line 76 of file Popen.h.

Referenced by launch(), and ~Popen().

PStream PLearn::Popen::in
 

Definition at line 77 of file Popen.h.

Referenced by PLearn::MatlabInterface::eigs_r11(), PLearn::execute(), launch(), PLearn::MatlabInterface::launchAndWaitFor(), and PLearn::matlabR11eigs().

PStream PLearn::Popen::out
 

Definition at line 78 of file Popen.h.

Referenced by launch().

pid_t PLearn::Popen::pid
 

Definition at line 72 of file Popen.h.

Referenced by launch(), wait(), and ~Popen().

bool PLearn::Popen::process_alive [protected]
 

Definition at line 66 of file Popen.h.

Referenced by launch(), wait(), and ~Popen().

bool PLearn::Popen::verbose [protected]
 

Definition at line 65 of file Popen.h.

Referenced by launch(), and Popen().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:24:35 2004 for PLearn by doxygen 1.3.7