libzypp 17.37.17
|
Helper filtering the files offered by a RepomdFileReader. More...
#include <zypp/repo/yum/RepomdFileCollector.h>
Public Types | |
using | FinalizeCb = std::function<void ( const OnMediaLocation &file )> |
Public Member Functions | |
NON_COPYABLE (RepomdFileCollector) | |
NON_MOVABLE (RepomdFileCollector) | |
RepomdFileCollector (const Pathname &destDir_r) | |
virtual | ~RepomdFileCollector () |
bool | collect (const OnMediaLocation &loc_r, const std::string &typestr_r) |
The callback invoked by the RepomdFileReader. | |
void | finalize (const FinalizeCb &cb) |
Protected Member Functions | |
virtual const RepoInfo & | repoInfo () const =0 |
virtual const Pathname & | deltaDir () const =0 |
Protected Attributes | |
const Pathname & | _destDir |
LocaleSet | _wantedLocales |
Locales do download. | |
std::map< std::string, OnMediaLocation > | _wantedFiles |
Private Member Functions | |
bool | wantLocale (const Locale &locale_r) const |
void | addWantedLocale (Locale locale_r) |
Helper filtering the files offered by a RepomdFileReader.
Collected files from repomd.xml: File types: type (plain) type_db (sqlite, ignored by zypp) type_zck (zchunk, preferred) Localized type: susedata.LOCALE
Definition at line 24 of file RepomdFileCollector.h.
using zypp::repo::yum::RepomdFileCollector::FinalizeCb = std::function<void ( const OnMediaLocation &file )> |
Definition at line 29 of file RepomdFileCollector.h.
zypp::repo::yum::RepomdFileCollector::RepomdFileCollector | ( | const Pathname & | destDir_r | ) |
Definition at line 92 of file RepomdFileCollector.cc.
|
virtual |
Definition at line 100 of file RepomdFileCollector.cc.
zypp::repo::yum::RepomdFileCollector::NON_COPYABLE | ( | RepomdFileCollector | ) |
zypp::repo::yum::RepomdFileCollector::NON_MOVABLE | ( | RepomdFileCollector | ) |
bool zypp::repo::yum::RepomdFileCollector::collect | ( | const OnMediaLocation & | loc_r, |
const std::string & | typestr_r ) |
The callback invoked by the RepomdFileReader.
It's a pity, but in the presence of separate "type" and "type_zck" entries, we have to scan the whole file before deciding what to download....
Definition at line 107 of file RepomdFileCollector.cc.
void zypp::repo::yum::RepomdFileCollector::finalize | ( | const FinalizeCb & | cb | ) |
Definition at line 143 of file RepomdFileCollector.cc.
|
protectedpure virtual |
|
protectedpure virtual |
Definition at line 153 of file RepomdFileCollector.cc.
|
private |
Definition at line 156 of file RepomdFileCollector.cc.
|
protected |
Definition at line 48 of file RepomdFileCollector.h.
|
protected |
Locales do download.
Definition at line 50 of file RepomdFileCollector.h.
|
protected |
Definition at line 51 of file RepomdFileCollector.h.