libzypp  17.1.1
zypp::repo::RepoMediaAccess::Impl Class Reference

Public Member Functions

 Impl (const ProvideFilePolicy &defaultPolicy_r)
 ~Impl ()
shared_ptr< MediaSetAccessmediaAccessForUrl (const Url &url, RepoInfo repo)
 Provide a MediaSetAccess for url with label and verifyer adjusted. More...

Public Attributes

ProvideFilePolicy _defaultPolicy

Private Member Functions

void setVerifierForRepo (RepoInfo repo, shared_ptr< MediaSetAccess > media)

Private Attributes

std::map< shared_ptr< MediaSetAccess >, RepoInfo_verifier
std::map< Url, shared_ptr< MediaSetAccess > > _medias

Detailed Description

Definition at line 121 of file

Constructor & Destructor Documentation

◆ Impl()

zypp::repo::RepoMediaAccess::Impl::Impl ( const ProvideFilePolicy defaultPolicy_r)

Definition at line 124 of file

◆ ~Impl()

zypp::repo::RepoMediaAccess::Impl::~Impl ( )

Definition at line 128 of file

Member Function Documentation

◆ mediaAccessForUrl()

shared_ptr<MediaSetAccess> zypp::repo::RepoMediaAccess::Impl::mediaAccessForUrl ( const Url url,
RepoInfo  repo 

Provide a MediaSetAccess for url with label and verifyer adjusted.

As the same url (e.g. 'dvd:///' ) might be used for multiple repos we must always adjust the repo specific data (label,verifyer).

This mixture of media and repos specific data is fragile.

Definition at line 146 of file

◆ setVerifierForRepo()

void zypp::repo::RepoMediaAccess::Impl::setVerifierForRepo ( RepoInfo  repo,
shared_ptr< MediaSetAccess media 

Definition at line 165 of file

Member Data Documentation

◆ _verifier

std::map<shared_ptr<MediaSetAccess>, RepoInfo> zypp::repo::RepoMediaAccess::Impl::_verifier

Definition at line 226 of file

◆ _medias

std::map<Url, shared_ptr<MediaSetAccess> > zypp::repo::RepoMediaAccess::Impl::_medias

Definition at line 227 of file

◆ _defaultPolicy

ProvideFilePolicy zypp::repo::RepoMediaAccess::Impl::_defaultPolicy

Definition at line 230 of file

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