Elm  1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
elm::sys::ProcessBuilder Class Reference

#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)
 
Processrun (void)
 

Detailed Description

This class is used to build a new process by launching a command line.

Constructor & Destructor Documentation

elm::sys::ProcessBuilder::ProcessBuilder ( CString  command)

Construct a process builder.

Parameters
commandCommand to use.

Member Function Documentation

void elm::sys::ProcessBuilder::addArgument ( CString  argument)

Add an argument to the command line.

Parameters
argumentArgument to add.
Process * elm::sys::ProcessBuilder::run ( void  )

Run the built process.

Returns
The built process.
Exceptions
SystemExceptionThrown 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.

Parameters
_outNew process error.
void elm::sys::ProcessBuilder::setInput ( SystemInStream *  _in)

Set the input stream of the built process.

Parameters
_inNew process input.
void elm::sys::ProcessBuilder::setOutput ( SystemOutStream *  _out)

Set the output stream of the built process.

Parameters
_outNew process output.

The documentation for this class was generated from the following files: