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

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

Public Member Functions

 NON_COPYABLE (Impl)
 
 NON_MOVABLE (Impl)
 
 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

Downloader_downloader
 
MediaSetAccess_media
 
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 Downloader.cc.

Constructor & Destructor Documentation

◆ Impl()

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

Definition at line 92 of file Downloader.cc.

Member Function Documentation

◆ NON_COPYABLE()

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

◆ NON_MOVABLE()

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 
)
inline

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 Downloader.cc.

◆ finalize()

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

Definition at line 139 of file Downloader.cc.

◆ deltaDir()

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

Definition at line 151 of file Downloader.cc.

◆ wantLocale()

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

Definition at line 154 of file Downloader.cc.

◆ addWantedLocale()

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

Definition at line 157 of file Downloader.cc.

Member Data Documentation

◆ _downloader

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

Definition at line 167 of file Downloader.cc.

◆ _media

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

Definition at line 168 of file Downloader.cc.

◆ _destDir

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

Definition at line 169 of file Downloader.cc.

◆ _wantedLocales

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

Locales do download.

Definition at line 171 of file Downloader.cc.

◆ _wantedFiles

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

Definition at line 172 of file Downloader.cc.


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