libzypp 17.31.23
zypp::PluginScript::Impl Struct Reference

PluginScript implementation. More...

Public Member Functions

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

Public Attributes

long _sendTimeout
 
long _receiveTimeout
 

Static Public Attributes

static long _defaultSendTimeout
 
static long _defaultReceiveTimeout
 

Private Attributes

Pathname _script
 
Arguments _args
 
scoped_ptr< ExternalProgramWithStderr_cmd
 
DefaultIntegral< int, 0 > _lastReturn
 
std::string _lastExecError
 

Detailed Description

PluginScript implementation.

Definition at line 112 of file PluginScript.cc.

Constructor & Destructor Documentation

◆ Impl()

zypp::PluginScript::Impl::Impl ( const Pathname script_r = Pathname(),
const Arguments args_r = Arguments() 
)
inline

Definition at line 115 of file PluginScript.cc.

◆ ~Impl()

zypp::PluginScript::Impl::~Impl ( )
inline

Definition at line 122 of file PluginScript.cc.

Member Function Documentation

◆ script()

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

Definition at line 133 of file PluginScript.cc.

◆ args()

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

Definition at line 136 of file PluginScript.cc.

◆ getPid()

pid_t zypp::PluginScript::Impl::getPid ( ) const
inline

Definition at line 139 of file PluginScript.cc.

◆ isOpen()

bool zypp::PluginScript::Impl::isOpen ( ) const
inline

Definition at line 142 of file PluginScript.cc.

◆ lastReturn()

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

Definition at line 145 of file PluginScript.cc.

◆ lastExecError()

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

Definition at line 148 of file PluginScript.cc.

◆ open()

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

Definition at line 191 of file PluginScript.cc.

◆ close()

int zypp::PluginScript::Impl::close ( )

Definition at line 225 of file PluginScript.cc.

◆ send()

void zypp::PluginScript::Impl::send ( const PluginFrame frame_r) const

Definition at line 257 of file PluginScript.cc.

◆ receive()

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

Definition at line 351 of file PluginScript.cc.

Member Data Documentation

◆ _defaultSendTimeout

long zypp::PluginScript::Impl::_defaultSendTimeout
static
Initial value:
= ( PLUGIN_SEND_TIMEOUT > 0 ? PLUGIN_SEND_TIMEOUT
: ( PLUGIN_TIMEOUT > 0 ? PLUGIN_TIMEOUT : 30 ) )

Definition at line 126 of file PluginScript.cc.

◆ _defaultReceiveTimeout

long zypp::PluginScript::Impl::_defaultReceiveTimeout
static
Initial value:
= ( PLUGIN_RECEIVE_TIMEOUT > 0 ? PLUGIN_RECEIVE_TIMEOUT
: ( PLUGIN_TIMEOUT > 0 ? PLUGIN_TIMEOUT : 30 ) )

Definition at line 127 of file PluginScript.cc.

◆ _sendTimeout

long zypp::PluginScript::Impl::_sendTimeout

Definition at line 129 of file PluginScript.cc.

◆ _receiveTimeout

long zypp::PluginScript::Impl::_receiveTimeout

Definition at line 130 of file PluginScript.cc.

◆ _script

Pathname zypp::PluginScript::Impl::_script
private

Definition at line 161 of file PluginScript.cc.

◆ _args

Arguments zypp::PluginScript::Impl::_args
private

Definition at line 162 of file PluginScript.cc.

◆ _cmd

scoped_ptr<ExternalProgramWithStderr> zypp::PluginScript::Impl::_cmd
private

Definition at line 163 of file PluginScript.cc.

◆ _lastReturn

DefaultIntegral<int,0> zypp::PluginScript::Impl::_lastReturn
private

Definition at line 164 of file PluginScript.cc.

◆ _lastExecError

std::string zypp::PluginScript::Impl::_lastExecError
private

Definition at line 165 of file PluginScript.cc.


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