#include <YUMScriptImpl.h>
Inheritance diagram for zypp::source::yum::YUMScriptImpl:

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 |
Definition at line 35 of file YUMScriptImpl.h.
| 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.
| 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().
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] |
shared_ptr<filesystem::TmpFile> zypp::source::yum::YUMScriptImpl::_tmp_undo_script [mutable, protected] |
1.5.0