|
VMime
|
#include <childProcess.hpp>


Public Types | |
| enum | Flags { FLAG_REDIRECT_STDIN = (1 << 0) , FLAG_REDIRECT_STDOUT = (1 << 1) } |
Public Member Functions | |
| virtual | ~childProcess () |
| virtual void | start (const std::vector< string > args, const int flags=0)=0 |
| virtual shared_ptr< utility::outputStream > | getStdIn ()=0 |
| virtual shared_ptr< utility::inputStream > | getStdOut ()=0 |
| virtual void | waitForFinish ()=0 |
Additional Inherited Members | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Spawn a process and redirect its standard input and/or standard output.
|
virtual |
|
pure virtual |
Return a wrapper to the child process standard input.
|
pure virtual |
Return a wrapper to the child process standard output.
Start the child process.
| args | list of arguments |
| flags | one or more childProcess::Flags |
| exceptions::system_error | if the an error occurs before the process can be started |
Wait for the process to finish.
| exceptions::system_error | if the process does not exit normally |