#include <OtherFileReader.h>
Public Types | |
| typedef function < bool(const data::Resolvable_Ptr &, const Changelog)> | ProcessPackage |
| Callback definition. | |
Public Member Functions | |
| OtherFileReader (const Pathname &other_file, const ProcessPackage &callback, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) | |
| CTOR. | |
| ~OtherFileReader () | |
| DTOR. | |
Private Attributes | |
| RW_pointer< Impl, rw_pointer::Scoped < Impl > > | _pimpl |
Classes | |
| class | Impl |
After a package is read, a data::Resolvable and Changelog is prepared and _callback is called with these two objects passed in.
The _callback is provided on construction.
OtherFileReader reader(other_file, bind(&SomeClass::callbackfunc, &SomeClassInstance, _1, _2));
Definition at line 45 of file OtherFileReader.h.
| typedef function<bool(const data::Resolvable_Ptr &, const Changelog)> zypp::parser::yum::OtherFileReader::ProcessPackage |
| zypp::parser::yum::OtherFileReader::OtherFileReader | ( | const Pathname & | other_file, | |
| const ProcessPackage & | callback, | |||
| const ProgressData::ReceiverFnc & | progress = ProgressData::ReceiverFnc() | |||
| ) |
CTOR.
Creates also xml::Reader and starts reading.
| other_file | the other.xml.gz file you want to read | |
| callback | function to process _resolvable data. | |
| progress | progress reporting object |
Definition at line 201 of file OtherFileReader.cc.
| zypp::parser::yum::OtherFileReader::~OtherFileReader | ( | ) |
Definition at line 73 of file OtherFileReader.h.
1.5.3