|
libzypp
9.1.2
|
PluginScript implementation. More...
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.) when sending data. | |
| static const long | receive_timeout |
| Timeout (sec.) when receiving data. | |
Private Attributes | |
| Pathname | _script |
| Arguments | _args |
| scoped_ptr < ExternalProgramWithStderr > | _cmd |
| DefaultIntegral< int, 0 > | _lastReturn |
| std::string | _lastExecError |
PluginScript implementation.
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] |
Definition at line 121 of file PluginScript.cc.
References close().
| const Pathname& zypp::PluginScript::Impl::script | ( | ) | const [inline] |
Definition at line 131 of file PluginScript.cc.
References _script.
Referenced by zypp::PluginScript::open(), and zypp::PluginScript::script().
| const Arguments& zypp::PluginScript::Impl::args | ( | ) | const [inline] |
Definition at line 134 of file PluginScript.cc.
References _args.
Referenced by zypp::PluginScript::args(), zypp::PluginScript::open(), and open().
| pid_t zypp::PluginScript::Impl::getPid | ( | ) | const [inline] |
Definition at line 137 of file PluginScript.cc.
References _cmd, and zypp::PluginScript::NotConnected.
Referenced by zypp::PluginScript::getPid().
| bool zypp::PluginScript::Impl::isOpen | ( | ) | const [inline] |
Definition at line 140 of file PluginScript.cc.
References _cmd.
Referenced by zypp::PluginScript::isOpen().
| int zypp::PluginScript::Impl::lastReturn | ( | ) | const [inline] |
Definition at line 143 of file PluginScript.cc.
References _lastReturn.
Referenced by zypp::PluginScript::lastReturn().
| const std::string& zypp::PluginScript::Impl::lastExecError | ( | ) | const [inline] |
Definition at line 146 of file PluginScript.cc.
References _lastExecError.
Referenced by zypp::PluginScript::lastExecError().
| 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.
Referenced by zypp::PluginScript::open().
| int zypp::PluginScript::Impl::close | ( | ) |
Definition at line 217 of file PluginScript.cc.
References DBG.
Referenced by zypp::PluginScript::close(), and ~Impl().
| void zypp::PluginScript::Impl::send | ( | const PluginFrame & | frame_r | ) | const |
Definition at line 231 of file PluginScript.cc.
References _DBG, zypp::PluginFrame::command(), zypp::iostr::copyIndent(), DBG, ERR, WAR, zypp::PluginFrame::writeTo(), and ZYPP_THROW.
Referenced by zypp::PluginScript::send().
| PluginFrame zypp::PluginScript::Impl::receive | ( | ) | const |
Definition at line 325 of file PluginScript.cc.
References DBG, ERR, WAR, and ZYPP_THROW.
Referenced by zypp::PluginScript::receive().
const long zypp::PluginScript::Impl::send_timeout [static] |
( PLUGIN_SEND_TIMEOUT > 0 ? PLUGIN_SEND_TIMEOUT
: ( PLUGIN_TIMEOUT > 0 ? PLUGIN_TIMEOUT : 30 ) )
Timeout (sec.) when sending data.
Definition at line 126 of file PluginScript.cc.
const long zypp::PluginScript::Impl::receive_timeout [static] |
( PLUGIN_RECEIVE_TIMEOUT > 0 ? PLUGIN_RECEIVE_TIMEOUT
: ( PLUGIN_TIMEOUT > 0 ? PLUGIN_TIMEOUT : 30 ) )
Timeout (sec.) when receiving data.
Definition at line 128 of file PluginScript.cc.
Pathname zypp::PluginScript::Impl::_script [private] |
Definition at line 159 of file PluginScript.cc.
Arguments zypp::PluginScript::Impl::_args [private] |
Definition at line 160 of file PluginScript.cc.
scoped_ptr<ExternalProgramWithStderr> zypp::PluginScript::Impl::_cmd [private] |
Definition at line 161 of file PluginScript.cc.
DefaultIntegral<int,0> zypp::PluginScript::Impl::_lastReturn [private] |
Definition at line 162 of file PluginScript.cc.
Referenced by lastReturn(), and open().
std::string zypp::PluginScript::Impl::_lastExecError [private] |
Definition at line 163 of file PluginScript.cc.
Referenced by lastExecError(), and open().
1.7.6.1