zypp::PluginScript::Impl Struct Reference

PluginScript implementation. More...

List of all members.

Public Member Functions

 Impl (const Pathname &script_r=Pathname(), const Arguments &args_r=Arguments())
 ~Impl ()
const Pathname & script () const
const Argumentsargs () 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


Detailed Description

PluginScript implementation.

Definition at line 113 of file PluginScript.cc.


Constructor & Destructor Documentation

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().


Member Function Documentation

const Pathname& zypp::PluginScript::Impl::script (  )  const [inline]

Definition at line 131 of file PluginScript.cc.

References _script.

const Arguments& zypp::PluginScript::Impl::args (  )  const [inline]

Definition at line 134 of file PluginScript.cc.

References _args.

Referenced by open().

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]

Definition at line 140 of file PluginScript.cc.

References _cmd.

int zypp::PluginScript::Impl::lastReturn (  )  const [inline]

Definition at line 143 of file PluginScript.cc.

References _lastReturn.

const std::string& zypp::PluginScript::Impl::lastExecError (  )  const [inline]

Definition at line 146 of file PluginScript.cc.

References _lastExecError.

void zypp::PluginScript::Impl::open ( const Pathname &  script_r = Pathname(),
const Arguments args_r = Arguments() 
)

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

PluginFrame zypp::PluginScript::Impl::receive (  )  const

Definition at line 325 of file PluginScript.cc.

References _cmd, DBG, ERR, receive_timeout, WAR, and ZYPP_THROW.


Member Data Documentation

Initial value:

 ( 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.

Referenced by send().

Initial value:

 ( 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.

Referenced by receive().

Definition at line 159 of file PluginScript.cc.

Referenced by open(), and script().

Definition at line 160 of file PluginScript.cc.

Referenced by args(), and open().

Definition at line 161 of file PluginScript.cc.

Referenced by close(), getPid(), isOpen(), open(), receive(), and send().

Definition at line 162 of file PluginScript.cc.

Referenced by close(), lastReturn(), and open().

Definition at line 163 of file PluginScript.cc.

Referenced by close(), lastExecError(), and open().


The documentation for this struct was generated from the following file:

doxygen