|
| ExternalProgramWithStderr (const Arguments &argv_r) |
|
| ExternalProgramWithStderr (const Arguments &argv_r, const Environment &environment_r) |
|
bool | stderrGetUpTo (std::string &retval_r, const char delim_r, bool returnDelim_r=false) |
| Read data up to delim_r from stderr (nonblocking). More...
|
|
bool | stderrGetline (std::string &retval_r, bool returnDelim_r=false) |
| Read next complete line from stderr (nonblocking). More...
|
|
| ExternalProgram (std::string commandline, Stderr_Disposition stderr_disp=Normal_Stderr, bool use_pty=false, int stderr_fd=-1, bool default_locale=false, const Pathname &root="") |
| Start the external program by using the shell /bin/sh with the option -c . More...
|
|
| ExternalProgram () |
| Start an external program by giving the arguments as an arry of char *pointers. More...
|
|
| ExternalProgram (const Arguments &argv, Stderr_Disposition stderr_disp=Normal_Stderr, bool use_pty=false, int stderr_fd=-1, bool default_locale=false, const Pathname &root="") |
|
| ExternalProgram (const Arguments &argv, const Environment &environment, Stderr_Disposition stderr_disp=Normal_Stderr, bool use_pty=false, int stderr_fd=-1, bool default_locale=false, const Pathname &root="") |
|
| ExternalProgram (const char *const *argv, Stderr_Disposition stderr_disp=Normal_Stderr, bool use_pty=false, int stderr_fd=-1, bool default_locale=false, const Pathname &root="") |
|
| ExternalProgram (const char *const *argv, const Environment &environment, Stderr_Disposition stderr_disp=Normal_Stderr, bool use_pty=false, int stderr_fd=-1, bool default_locale=false, const Pathname &root="") |
|
| ExternalProgram (const char *binpath, const char *const *argv_1, bool use_pty=false) |
|
| ExternalProgram (const char *binpath, const char *const *argv_1, const Environment &environment, bool use_pty=false) |
|
| ~ExternalProgram () |
|
int | close () |
| Wait for the progamm to complete. More...
|
|
bool | kill () |
| Kill the program. More...
|
|
bool | running () |
| Return whether program is running. More...
|
|
pid_t | getpid () |
| return pid More...
|
|
const std::string & | command () const |
| The command we're executing. More...
|
|
const std::string & | execError () const |
| Some detail telling why the execution failed, if it failed. More...
|
|
std::ostream & | operator>> (std::ostream &out_r) |
| Redirect all command output to an ostream . More...
|
|
| ExternalDataSource (FILE *inputfile=0, FILE *outputfile=0) |
| Create a new instance. More...
|
|
virtual | ~ExternalDataSource () |
| Implicitly close the connection. More...
|
|
bool | send (const char *buffer, size_t length) |
| Send some data to the output stream. More...
|
|
bool | send (std::string s) |
| Send some data down the stream. More...
|
|
size_t | receive (char *buffer, size_t length) |
| Read some data from the input stream. More...
|
|
std::string | receiveLine () |
| Read one line from the input stream. More...
|
|
std::string | receiveUpto (char c) |
| Read characters into a string until character c is read. More...
|
|
void | setBlocking (bool mode) |
| Set the blocking mode of the input stream. More...
|
|
FILE * | inputFile () const |
| Return the input stream. More...
|
|
FILE * | outputFile () const |
| Return the output stream. More...
|
|