#include <PrimaryFileReader.h>
Public Types | |
| typedef function < bool(const data::Packagebase_Ptr &)> | ProcessPackage |
| Callback definition. | |
Public Member Functions | |
| PrimaryFileReader (const Pathname &primary_file, const ProcessPackage &callback, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) | |
| CTOR. | |
| ~PrimaryFileReader () | |
| DTOR. | |
Private Attributes | |
| RW_pointer< Impl, rw_pointer::Scoped < Impl > > | _pimpl |
Classes | |
| class | Impl |
After a package is read, a zypp::data::Package object is prepared and _callback is called with this object passed in.
The _callback is provided on construction.
PrimaryFileReader reader(repomd_file, bind(&SomeClass::callbackfunc, &object, _1));
Definition at line 48 of file PrimaryFileReader.h.
| typedef function<bool(const data::Packagebase_Ptr &)> zypp::parser::yum::PrimaryFileReader::ProcessPackage |
| zypp::parser::yum::PrimaryFileReader::PrimaryFileReader | ( | const Pathname & | primary_file, | |
| const ProcessPackage & | callback, | |||
| const ProgressData::ReceiverFnc & | progress = ProgressData::ReceiverFnc() | |||
| ) |
CTOR.
Creates also xml::Reader and starts reading.
| primary_file | the primary.xml.gz file you want to read | |
| callback | function to process _package data. | |
| progress | progress reporting function |
| AbortRequestException | if user request for aborting the parsing has been received through progress reporting callback. |
Definition at line 190 of file PrimaryFileReader.cc.
| zypp::parser::yum::PrimaryFileReader::~PrimaryFileReader | ( | ) |
Definition at line 78 of file PrimaryFileReader.h.
1.5.3