|
libzypp
17.7.0
|
Iterates through a patches.xml file giving on each iteration a OnMediaLocation object with the resource and its patch id. More...
#include <PatchesFileReader.h>

Classes | |
| class | Impl |
Public Types | |
| typedef function< bool(const OnMediaLocation &, const std::string &)> | ProcessResource |
| Callback definition first parameter is a OnMediaLocation object with the resource second parameter is the patch id. More... | |
Public Member Functions | |
| PatchesFileReader (const Pathname &patches_file, const ProcessResource &callback) | |
| CTOR. More... | |
| ~PatchesFileReader () | |
| DTOR. More... | |
Private Attributes | |
| RW_pointer< Impl, rw_pointer::Scoped< Impl > > | _pimpl |
Iterates through a patches.xml file giving on each iteration a OnMediaLocation object with the resource and its patch id.
The iteration is done via a callback provided on construction.
Definition at line 40 of file PatchesFileReader.h.
| typedef function<bool( const OnMediaLocation &, const std::string & )> zypp::parser::yum::PatchesFileReader::ProcessResource |
Callback definition first parameter is a OnMediaLocation object with the resource second parameter is the patch id.
Definition at line 51 of file PatchesFileReader.h.
| zypp::parser::yum::PatchesFileReader::PatchesFileReader | ( | const Pathname & | patches_file, |
| const ProcessResource & | callback | ||
| ) |
CTOR.
Creates also xml::Reader and starts reading.
| patches_file | is the patches.xml file you want to read |
| callback | is a function. |
Definition at line 142 of file PatchesFileReader.cc.
| zypp::parser::yum::PatchesFileReader::~PatchesFileReader | ( | ) |
DTOR.
Definition at line 147 of file PatchesFileReader.cc.
|
private |
Definition at line 71 of file PatchesFileReader.h.