#include <pstream.h>
Inheritance diagram for redi::basic_ipstream< CharT, Traits >:
Public Types | |
typedef pbase_type::pmode | pmode |
Type used to specify how to connect to the process. | |
Public Member Functions | |
basic_ipstream () | |
Default constructor, creates an uninitialised stream. | |
basic_ipstream (const std::string &command, pmode mode=std::ios_base::in) | |
Constructor that initialises the stream by starting a process. | |
basic_ipstream (const std::string &file, const std::vector< std::string > &argv, pmode mode=std::ios_base::in) | |
Constructor that initialises the stream by starting a process. | |
~basic_ipstream () | |
Destructor. | |
void | open (const std::string &command, pmode mode=std::ios_base::in) |
Start a process. | |
void | open (const std::string &file, const std::vector< std::string > &argv, pmode mode=std::ios_base::in) |
Start a process. | |
basic_ipstream & | out () |
Set streambuf to read from process' stdout . | |
basic_ipstream & | err () |
Set streambuf to read from process' stderr . |
Reading from an ipstream reads the command's standard output and/or standard error (depending on how the ipstream is opened) and the command's standard input is the same as that of the process that created the object, unless altered by the command itself.
|
Constructor that initialises the stream by starting a process. Initialises the stream buffer by calling open() with the supplied arguments.
|
|
Constructor that initialises the stream by starting a process. Initialises the stream buffer by calling open() with the supplied arguments.
|
|
Destructor. Closes the stream and waits for the child to exit. |
|
Set streambuf to read from process'
|
|
Start a process. Starts a new process by executing file with the arguments in argv and opens pipes to the process as given by mode.
Reimplemented from redi::pstream_common< CharT, Traits >. |
|
Start a process. Starts a new process by passing command to the shell and opens a pipe to the process with the specified mode.
Reimplemented from redi::pstream_common< CharT, Traits >. |
|
Set streambuf to read from process'
|