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.
filesystem::TmpFile _tmp_file
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 42 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.

Implements zypp::detail::ScriptImplIf.

Definition at line 64 of file YUMScriptImpl.cc.

References _do_checksum, _do_location, _do_media, _do_script, _tmp_file, zypp::filesystem::Pathname::asString(), zypp::source::yum::YUMSourceImpl::checkCheckSum(), zypp::CheckSum::checksum(), N_, zypp::filesystem::TmpPath::path(), zypp::Source_Ref::provideFile(), source(), zypp::CheckSum::type(), and ZYPP_THROW.

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

Get the script to undo the change.

Implements zypp::detail::ScriptImplIf.

Definition at line 88 of file YUMScriptImpl.cc.

References _tmp_file, _undo_checksum, _undo_location, _undo_media, _undo_script, zypp::filesystem::Pathname::asString(), zypp::source::yum::YUMSourceImpl::checkCheckSum(), zypp::CheckSum::checksum(), N_, zypp::filesystem::TmpPath::path(), zypp::Source_Ref::provideFile(), source(), zypp::CheckSum::type(), and ZYPP_THROW.

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

Check whether script to undo the change is available.

Implements zypp::detail::ScriptImplIf.

Definition at line 109 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 114 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().

filesystem::TmpFile zypp::source::yum::YUMScriptImpl::_tmp_file [mutable, protected]
 

Definition at line 63 of file YUMScriptImpl.h.

Referenced by do_script(), and undo_script().

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

Definition at line 65 of file YUMScriptImpl.h.

Referenced by do_script().

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

Definition at line 66 of file YUMScriptImpl.h.

Referenced by undo_script().

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

Definition at line 68 of file YUMScriptImpl.h.

Referenced by source().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:34 2006 for zypp by  doxygen 1.4.6