|
Jpp
18.4.0
the software that should make you happy
|
Streaming of input and output from Linux command. More...
#include <JProcess.hh>
Public Member Functions | |
| JProcess () | |
| Default constructor. More... | |
| JProcess (const std::string &command) | |
| Constructor. More... | |
| ~JProcess () | |
| Destructor. More... | |
| JFileInputStreamBuffer * | getInputStreamBuffer (const std::size_t size=65536) |
| Get pointer to input stream buffer connected to the normal output stream. More... | |
| JFileInputStreamBuffer * | getErrorStreamBuffer (const std::size_t size=65536) |
| Get pointer to input stream buffer connected to the error output stream. More... | |
| JFileOutputStreamBuffer * | getOutputStreamBuffer (const std::size_t size=65536) |
| Get pointer to output stream buffer connected to the normal input stream. More... | |
Protected Member Functions | |
| void | execute (const char *path, const char *arg0, const char *arg1=(char *) NULL, const char *arg2=(char *) NULL, const char *arg3=(char *) NULL, const char *arg4=(char *) NULL, const char *arg5=(char *) NULL, const char *arg6=(char *) NULL, const char *arg7=(char *) NULL, const char *arg8=(char *) NULL, const char *arg9=(char *) NULL) |
| Execute command. More... | |
Protected Attributes | |
| int | out |
| int | err |
| int | in |
Private Member Functions | |
| JProcess (const JProcess &) | |
| JProcess (JProcess &&) | |
| JProcess & | operator= (const JProcess &) |
| JProcess & | operator= (JProcess &&) |
Private Attributes | |
| JFileInputStreamBuffer * | gOut |
| JFileInputStreamBuffer * | gErr |
| JFileOutputStreamBuffer * | gIn |
Streaming of input and output from Linux command.
Definition at line 29 of file JProcess.hh.
|
inline |
Default constructor.
This constructor starts an interactive shell.
Definition at line 36 of file JProcess.hh.
|
inline |
Constructor.
| command | Linux command |
Definition at line 53 of file JProcess.hh.
|
inline |
|
private |
|
private |
|
inline |
Get pointer to input stream buffer connected to the normal output stream.
| size | size of internal buffers |
Definition at line 86 of file JProcess.hh.
|
inline |
Get pointer to input stream buffer connected to the error output stream.
| size | size of internal buffers |
Definition at line 102 of file JProcess.hh.
|
inline |
Get pointer to output stream buffer connected to the normal input stream.
| size | size of internal buffers |
Definition at line 118 of file JProcess.hh.
|
inlineprotected |
Execute command.
| path | path |
| arg0 | comma separted argument list |
| arg1 | comma separted argument list |
| arg2 | comma separted argument list |
| arg3 | comma separted argument list |
| arg4 | comma separted argument list |
| arg5 | comma separted argument list |
| arg6 | comma separted argument list |
| arg7 | comma separted argument list |
| arg8 | comma separted argument list |
| arg9 | comma separted argument list |
Definition at line 143 of file JProcess.hh.
|
protected |
Definition at line 202 of file JProcess.hh.
|
protected |
Definition at line 203 of file JProcess.hh.
|
protected |
Definition at line 204 of file JProcess.hh.
|
private |
Definition at line 207 of file JProcess.hh.
|
private |
Definition at line 208 of file JProcess.hh.
|
private |
Definition at line 209 of file JProcess.hh.
1.8.5