libzypp
10.5.0
|
ExternalProgram extended to offer reading programs stderr. More...
#include <ExternalProgram.h>
Public Member Functions | |
ExternalProgramWithStderr (const Arguments &argv_r) | |
ExternalProgramWithStderr (const Arguments &argv_r, const Environment &environment_r) | |
bool | stderrGetUpTo (std::string &retval_r, const char delim_r, bool returnDelim_r=false) |
Read data up to delim_r from stderr (nonblocking). | |
bool | stderrGetline (std::string &retval_r, bool returnDelim_r=false) |
Read next complete line from stderr (nonblocking). | |
Private Member Functions | |
void | _initStdErr () |
Close write end of the pipe (childs end). | |
Private Attributes | |
std::string | _buffer |
ExternalProgram extended to offer reading programs stderr.
Definition at line 250 of file ExternalProgram.h.
zypp::ExternalProgramWithStderr::ExternalProgramWithStderr | ( | const Arguments & | argv_r | ) | [inline] |
Definition at line 253 of file ExternalProgram.h.
zypp::ExternalProgramWithStderr::ExternalProgramWithStderr | ( | const Arguments & | argv_r, |
const Environment & | environment_r | ||
) | [inline] |
Definition at line 257 of file ExternalProgram.h.
bool zypp::ExternalProgramWithStderr::stderrGetUpTo | ( | std::string & | retval_r, |
const char | delim_r, | ||
bool | returnDelim_r = false |
||
) |
Read data up to delim_r
from stderr (nonblocking).
delim_r
is '\0', we read as much data as possible. false
if data are not yet available (retval_r
remains untouched then). Definition at line 593 of file ExternalProgram.cc.
bool zypp::ExternalProgramWithStderr::stderrGetline | ( | std::string & | retval_r, |
bool | returnDelim_r = false |
||
) | [inline] |
Read next complete line from stderr (nonblocking).
false
if data are not yet available (retval_r
remains untouched then). Definition at line 274 of file ExternalProgram.h.
void zypp::ExternalProgramWithStderr::_initStdErr | ( | ) | [inline, private] |
Close write end of the pipe (childs end).
Definition at line 279 of file ExternalProgram.h.
std::string zypp::ExternalProgramWithStderr::_buffer [private] |
Definition at line 283 of file ExternalProgram.h.