#include <PatchesFileReader.h>
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. | |
Public Member Functions | |
| PatchesFileReader (const Pathname &patches_file, const ProcessResource &callback) | |
| CTOR. | |
| ~PatchesFileReader () | |
| DTOR. | |
Private Attributes | |
| RW_pointer< Impl, rw_pointer::Scoped < Impl > > | _pimpl |
Classes | |
| class | Impl |
The iteration is done via a callback provided on construction.
PatchesFileReader reader(patches_file, bind( &SomeClass::callbackfunc, &object, _1, _2 ) );
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 140 of file PatchesFileReader.cc.
| zypp::parser::yum::PatchesFileReader::~PatchesFileReader | ( | ) |
Definition at line 71 of file PatchesFileReader.h.
1.5.3