Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/sys/ProcessBuilder.h>
Public Member Functions | |
ProcessBuilder (CString command) | |
void | addArgument (CString argument) |
void | setInput (SystemInStream *_in) |
void | setOutput (SystemOutStream *_out) |
void | setError (SystemOutStream *_out) |
Process * | run (void) |
This class is used to build a new process by launching a command line.
elm::sys::ProcessBuilder::ProcessBuilder | ( | CString | command | ) |
Construct a process builder.
command | Command to use. |
void elm::sys::ProcessBuilder::addArgument | ( | CString | argument | ) |
Add an argument to the command line.
argument | Argument to add. |
Process * elm::sys::ProcessBuilder::run | ( | void | ) |
Run the built process.
SystemException | Thrown if there is an error during the build. |
References elm::String::chars(), elm::cout, elm::io::endl, elm::io::err, elm::io::in, elm::StringBuffer::length(), elm::io::out, and elm::StringBuffer::toString().
void elm::sys::ProcessBuilder::setError | ( | SystemOutStream * | _err | ) |
Set the error stream of the built process.
_out | New process error. |
void elm::sys::ProcessBuilder::setInput | ( | SystemInStream * | _in | ) |
Set the input stream of the built process.
_in | New process input. |
void elm::sys::ProcessBuilder::setOutput | ( | SystemOutStream * | _out | ) |
Set the output stream of the built process.
_out | New process output. |