Public Member Functions | |
Impl (const Pathname &script_r=Pathname(), const Arguments &args_r=Arguments()) | |
~Impl () | |
const Pathname & | script () const |
const Arguments & | args () const |
pid_t | getPid () const |
bool | isOpen () const |
int | lastReturn () const |
const std::string & | lastExecError () const |
void | open (const Pathname &script_r=Pathname(), const Arguments &args_r=Arguments()) |
int | close () |
void | send (const PluginFrame &frame_r) const |
PluginFrame | receive () const |
Static Public Attributes | |
static const long | send_timeout |
Timeout (sec. | |
static const long | receive_timeout |
Timeout (sec. | |
Private Attributes | |
Pathname | _script |
Arguments | _args |
scoped_ptr < ExternalProgramWithStderr > | _cmd |
DefaultIntegral< int, 0 > | _lastReturn |
std::string | _lastExecError |
Definition at line 113 of file PluginScript.cc.
zypp::PluginScript::Impl::Impl | ( | const Pathname & | script_r = Pathname() , |
|
const Arguments & | args_r = Arguments() | |||
) | [inline] |
Definition at line 116 of file PluginScript.cc.
zypp::PluginScript::Impl::~Impl | ( | ) | [inline] |
const Pathname& zypp::PluginScript::Impl::script | ( | ) | const [inline] |
const Arguments& zypp::PluginScript::Impl::args | ( | ) | const [inline] |
pid_t zypp::PluginScript::Impl::getPid | ( | ) | const [inline] |
Definition at line 137 of file PluginScript.cc.
References _cmd, and zypp::PluginScript::NotConnected.
bool zypp::PluginScript::Impl::isOpen | ( | ) | const [inline] |
int zypp::PluginScript::Impl::lastReturn | ( | ) | const [inline] |
const std::string& zypp::PluginScript::Impl::lastExecError | ( | ) | const [inline] |
void zypp::PluginScript::Impl::open | ( | const Pathname & | script_r = Pathname() , |
|
const Arguments & | args_r = Arguments() | |||
) |
Definition at line 183 of file PluginScript.cc.
References _args, _cmd, _lastExecError, _lastReturn, _script, args(), DBG, zypp::dumpRangeLine(), zypp::DefaultIntegral< _Tp, _Initial >::reset(), and ZYPP_THROW.
int zypp::PluginScript::Impl::close | ( | ) |
Definition at line 217 of file PluginScript.cc.
References _cmd, _lastExecError, _lastReturn, and DBG.
Referenced by ~Impl().
void zypp::PluginScript::Impl::send | ( | const PluginFrame & | frame_r | ) | const |
Definition at line 231 of file PluginScript.cc.
References _cmd, _DBG, zypp::PluginFrame::command(), zypp::iostr::copyIndent(), DBG, ERR, send_timeout, WAR, zypp::PluginFrame::writeTo(), and ZYPP_THROW.
PluginFrame zypp::PluginScript::Impl::receive | ( | ) | const |
Definition at line 325 of file PluginScript.cc.
References _cmd, DBG, ERR, receive_timeout, WAR, and ZYPP_THROW.
const long zypp::PluginScript::Impl::send_timeout [static] |
Initial value:
( PLUGIN_SEND_TIMEOUT > 0 ? PLUGIN_SEND_TIMEOUT : ( PLUGIN_TIMEOUT > 0 ? PLUGIN_TIMEOUT : 30 ) )
) when sending data.
Definition at line 126 of file PluginScript.cc.
Referenced by send().
const long zypp::PluginScript::Impl::receive_timeout [static] |
Initial value:
( PLUGIN_RECEIVE_TIMEOUT > 0 ? PLUGIN_RECEIVE_TIMEOUT : ( PLUGIN_TIMEOUT > 0 ? PLUGIN_TIMEOUT : 30 ) )
) when receiving data.
Definition at line 128 of file PluginScript.cc.
Referenced by receive().
Pathname zypp::PluginScript::Impl::_script [private] |
Arguments zypp::PluginScript::Impl::_args [private] |
scoped_ptr<ExternalProgramWithStderr> zypp::PluginScript::Impl::_cmd [private] |
DefaultIntegral<int,0> zypp::PluginScript::Impl::_lastReturn [private] |
std::string zypp::PluginScript::Impl::_lastExecError [private] |