|
libzypp
15.3.0
|
Reads through a repomd.xml file and collects type, location, checksum and other data about metadata files to be processed. More...
#include <RepomdFileReader.h>

Classes | |
| class | Impl |
Public Types | |
| typedef function< bool(const OnMediaLocation &, const repo::yum::ResourceType &)> | ProcessResource |
| Callback definition. More... | |
Public Member Functions | |
| RepomdFileReader (const Pathname &repomd_file, const ProcessResource &callback) | |
| CTOR. More... | |
| ~RepomdFileReader () | |
| DTOR. More... | |
Private Attributes | |
| RW_pointer< Impl, rw_pointer::Scoped< Impl > > | _pimpl |
Reads through a repomd.xml file and collects type, location, checksum and other data about metadata files to be processed.
After each package is read, a OnMediaLocation and repo::yum::ResourceType is prepared and _callback is called with these two objects passed in.
The _callback is provided on construction.
Definition at line 46 of file RepomdFileReader.h.
| typedef function< bool( const OnMediaLocation &, const repo::yum::ResourceType &)> zypp::parser::yum::RepomdFileReader::ProcessResource |
Callback definition.
First parameter is a OnMediaLocation object with the resource second parameter is the resource type.
Definition at line 57 of file RepomdFileReader.h.
| zypp::parser::yum::RepomdFileReader::RepomdFileReader | ( | const Pathname & | repomd_file, |
| const ProcessResource & | callback | ||
| ) |
CTOR.
Creates also xml::Reader and starts reading.
| repomd_file | is the repomd.xml file you want to read |
| callback | is a function. |
Definition at line 193 of file RepomdFileReader.cc.
| zypp::parser::yum::RepomdFileReader::~RepomdFileReader | ( | ) |
DTOR.
Definition at line 199 of file RepomdFileReader.cc.
|
private |
Definition at line 76 of file RepomdFileReader.h.