#include <pstream.h>
Public Member Functions | |
pstream (const std::string &command, const std::string &mode) throw (std::runtime_error) | |
Constructor. | |
size_t | close () throw (std::runtime_error) |
Close stream. | |
~pstream () throw (std::runtime_error) | |
Destructor. | |
const std::string & | command () const |
const std::string & | mode () const |
Private Attributes | |
void * | file_ |
const std::string | command_ |
const std::string | mode_ |
Definition at line 13 of file pstream.h.
|
Constructor. Create an input or output stream for data produced by a command. If mode is "r" (read), reading the stream reads output from the command. If mode is "w" (write), writing the stream sends the data to the command's standard input.
|
|
Destructor.
|
|
Close stream. Wait for command to finish, then return its exit status. After a close, the stream is unusable.
|
|
Definition at line 45 of file pstream.h. References command_. |
|
Definition at line 47 of file pstream.h. References mode_. |
|
|
Definition at line 50 of file pstream.h. Referenced by command(). |
|
Definition at line 51 of file pstream.h. Referenced by mode(). |
dvutil-0.13.15 | [30 December, 2004] |