libzypp 17.31.23
zypp::repo::yum::Downloader::Impl Class Reference

Helper filtering the files offered by a RepomdFileReader. More...

Public Member Functions

 Impl (Downloader &downloader_r, MediaSetAccess &media_r, const Pathname &destDir_r)
bool operator() (const OnMediaLocation &loc_r, const std::string &typestr_r)
 The callback invoked by the RepomdFileReader.
void finalize ()

Private Member Functions

const PathnamedeltaDir () const
bool wantLocale (const Locale &locale_r) const
void addWantedLocale (Locale locale_r)

Private Attributes

const Pathname_destDir
LocaleSet _wantedLocales
 Locales do download.
std::map< std::string, OnMediaLocation_wantedFiles

Detailed Description

Helper filtering the files offered by a RepomdFileReader.

Clumsy construct; basically an Impl class for Downloader, maintained in Downloader::download only while parsing a repomd.xml. File types: type (plain) type_db (sqlite, ignored by zypp) type_zck (zchunk, preferred) Localized type: susedata.LOCALE

Definition at line 87 of file

Constructor & Destructor Documentation

◆ Impl()

zypp::repo::yum::Downloader::Impl::Impl ( Downloader downloader_r,
MediaSetAccess media_r,
const Pathname destDir_r 

Definition at line 92 of file

Member Function Documentation


zypp::repo::yum::Downloader::Impl::NON_COPYABLE ( Impl  )


zypp::repo::yum::Downloader::Impl::NON_MOVABLE ( Impl  )

◆ operator()()

bool zypp::repo::yum::Downloader::Impl::operator() ( 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 106 of file

◆ finalize()

void zypp::repo::yum::Downloader::Impl::finalize ( )

Definition at line 139 of file

◆ deltaDir()

const Pathname & zypp::repo::yum::Downloader::Impl::deltaDir ( ) const

Definition at line 151 of file

◆ wantLocale()

bool zypp::repo::yum::Downloader::Impl::wantLocale ( const Locale locale_r) const

Definition at line 154 of file

◆ addWantedLocale()

void zypp::repo::yum::Downloader::Impl::addWantedLocale ( Locale  locale_r)

Definition at line 157 of file

Member Data Documentation

◆ _downloader

Downloader& zypp::repo::yum::Downloader::Impl::_downloader

Definition at line 167 of file

◆ _media

MediaSetAccess& zypp::repo::yum::Downloader::Impl::_media

Definition at line 168 of file

◆ _destDir

const Pathname& zypp::repo::yum::Downloader::Impl::_destDir

Definition at line 169 of file

◆ _wantedLocales

LocaleSet zypp::repo::yum::Downloader::Impl::_wantedLocales

Locales do download.

Definition at line 171 of file

◆ _wantedFiles

std::map<std::string,OnMediaLocation> zypp::repo::yum::Downloader::Impl::_wantedFiles

Definition at line 172 of file

The documentation for this class was generated from the following file: