|
libzypp
9.1.2
|
Reads through a repoindex.xml file and collects repositories. More...
#include <RepoindexFileReader.h>

Classes | |
| class | Impl |
Public Types | |
| typedef function< bool(const RepoInfo &)> | ProcessResource |
| Callback definition. | |
Public Member Functions | |
| RepoindexFileReader (const zypp::Pathname &repoindexFile, const ProcessResource &callback) | |
| CTOR. | |
| RepoindexFileReader (const InputStream &is, const ProcessResource &callback) | |
| Constructor. | |
| ~RepoindexFileReader () | |
| DTOR. | |
Private Attributes | |
| RW_pointer< Impl, rw_pointer::Scoped< Impl > > | _pimpl |
Reads through a repoindex.xml file and collects repositories.
After each repository is read, a RepoInfo is prepared and _callback is called with this object passed in.
The _callback is provided on construction.
RepoindexFileReader reader(repoindex_file, bind( &SomeClass::callbackfunc, &SomeClassInstance, _1) );
Definition at line 43 of file RepoindexFileReader.h.
| typedef function< bool( const RepoInfo & )> zypp::parser::RepoindexFileReader::ProcessResource |
Callback definition.
First parameter is a RepoInfo object with the resource FIXME return value is ignored
Definition at line 53 of file RepoindexFileReader.h.
| zypp::parser::RepoindexFileReader::RepoindexFileReader | ( | const zypp::Pathname & | repoindexFile, |
| const ProcessResource & | callback | ||
| ) |
CTOR.
Creates also xml::Reader and starts reading.
| repoindexFile | is the repoindex.xml file you want to read |
| callback | is a function. |
Definition at line 186 of file RepoindexFileReader.cc.
| zypp::parser::RepoindexFileReader::RepoindexFileReader | ( | const InputStream & | is, |
| const ProcessResource & | callback | ||
| ) |
Constructor.
Creates the reader and start reading.
| is | a valid input stream |
| callback | Callback that will be called for each repository. |
Definition at line 192 of file RepoindexFileReader.cc.
DTOR.
Definition at line 197 of file RepoindexFileReader.cc.
Definition at line 83 of file RepoindexFileReader.h.
1.7.6.1