zypp::source::yum::YUMScriptImpl Class Reference

Class representing an update script. More...

#include <YUMScriptImpl.h>

Inheritance diagram for zypp::source::yum::YUMScriptImpl:

zypp::detail::ScriptImplIf zypp::detail::ResObjectImplIf zypp::base::ReferenceCounted NonCopyable List of all members.

Public Member Functions

 YUMScriptImpl (Source_Ref source_r, const zypp::parser::yum::YUMPatchScript &parsed)
 Default ctor.
virtual Pathname do_script () const
 Get the script to perform the change.
virtual Pathname undo_script () const
 Get the script to undo the change.
virtual bool undo_available () const
 Check whether script to undo the change is available.
Source_Ref source () const
 Backlink to the source providing this.

Protected Attributes

std::string _do_script
 The script to perform the change.
std::string _undo_script
 The script to undo the change.
Pathname _do_location
 Location of external do script on the medium.
Pathname _undo_location
 Location of external undo script on the medium.
unsigned _do_media
 Media number of the do script.
unsigned _undo_media
 Media number of the undo script.
shared_ptr< filesystem::TmpFile_tmp_do_script
shared_ptr< filesystem::TmpFile_tmp_undo_script
CheckSum _do_checksum
CheckSum _undo_checksum

Private Attributes

Source_Ref _source

Detailed Description

Class representing an update script.

Definition at line 35 of file YUMScriptImpl.h.


Constructor & Destructor Documentation

zypp::source::yum::YUMScriptImpl::YUMScriptImpl ( Source_Ref  source_r,
const zypp::parser::yum::YUMPatchScript parsed 
)

Default ctor.

Definition at line 43 of file YUMScriptImpl.cc.

References _do_media, _undo_media, zypp::parser::yum::YUMPatchScript::do_media, and zypp::parser::yum::YUMPatchScript::undo_media.


Member Function Documentation

Pathname zypp::source::yum::YUMScriptImpl::do_script (  )  const [virtual]

Get the script to perform the change.

Reimplemented from zypp::detail::ScriptImplIf.

Definition at line 65 of file YUMScriptImpl.cc.

References _do_checksum, _do_location, _do_media, _do_script, _tmp_do_script, zypp::filesystem::is_checksum(), N_, zypp::Source_Ref::provideFile(), source(), and ZYPP_THROW.

Pathname zypp::source::yum::YUMScriptImpl::undo_script (  )  const [virtual]

Get the script to undo the change.

Reimplemented from zypp::detail::ScriptImplIf.

Definition at line 99 of file YUMScriptImpl.cc.

References _tmp_undo_script, _undo_checksum, _undo_location, _undo_media, _undo_script, zypp::filesystem::is_checksum(), N_, zypp::Source_Ref::provideFile(), source(), and ZYPP_THROW.

bool zypp::source::yum::YUMScriptImpl::undo_available (  )  const [virtual]

Check whether script to undo the change is available.

Reimplemented from zypp::detail::ScriptImplIf.

Definition at line 130 of file YUMScriptImpl.cc.

References _undo_location, and _undo_script.

Source_Ref zypp::source::yum::YUMScriptImpl::source (  )  const [virtual]

Backlink to the source providing this.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 136 of file YUMScriptImpl.cc.

References _source.

Referenced by do_script(), and undo_script().


Member Data Documentation

std::string zypp::source::yum::YUMScriptImpl::_do_script [protected]

The script to perform the change.

Definition at line 52 of file YUMScriptImpl.h.

Referenced by do_script().

std::string zypp::source::yum::YUMScriptImpl::_undo_script [protected]

The script to undo the change.

Definition at line 54 of file YUMScriptImpl.h.

Referenced by undo_available(), and undo_script().

Pathname zypp::source::yum::YUMScriptImpl::_do_location [protected]

Location of external do script on the medium.

Definition at line 56 of file YUMScriptImpl.h.

Referenced by do_script().

Pathname zypp::source::yum::YUMScriptImpl::_undo_location [protected]

Location of external undo script on the medium.

Definition at line 58 of file YUMScriptImpl.h.

Referenced by undo_available(), and undo_script().

unsigned zypp::source::yum::YUMScriptImpl::_do_media [protected]

Media number of the do script.

Definition at line 60 of file YUMScriptImpl.h.

Referenced by do_script(), and YUMScriptImpl().

unsigned zypp::source::yum::YUMScriptImpl::_undo_media [protected]

Media number of the undo script.

Definition at line 62 of file YUMScriptImpl.h.

Referenced by undo_script(), and YUMScriptImpl().

shared_ptr<filesystem::TmpFile> zypp::source::yum::YUMScriptImpl::_tmp_do_script [mutable, protected]

Definition at line 64 of file YUMScriptImpl.h.

Referenced by do_script().

shared_ptr<filesystem::TmpFile> zypp::source::yum::YUMScriptImpl::_tmp_undo_script [mutable, protected]

Definition at line 65 of file YUMScriptImpl.h.

Referenced by undo_script().

CheckSum zypp::source::yum::YUMScriptImpl::_do_checksum [protected]

Definition at line 67 of file YUMScriptImpl.h.

Referenced by do_script().

CheckSum zypp::source::yum::YUMScriptImpl::_undo_checksum [protected]

Definition at line 68 of file YUMScriptImpl.h.

Referenced by undo_script().

Source_Ref zypp::source::yum::YUMScriptImpl::_source [private]

Definition at line 70 of file YUMScriptImpl.h.

Referenced by source().


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 16:49:40 2006 for zypp by  doxygen 1.5.0