libzypp 8.13.6
|
#include <RepoMirrorList.h>
Public Member Functions | |
RepoMirrorList (const Url &url) | |
RepoMirrorList (const Url &url, const Pathname &metadatapath) | |
virtual | ~RepoMirrorList () |
std::vector< Url > | getUrls () const |
Private Member Functions | |
void | setUrls (std::vector< Url > my_urls) |
std::vector< Url > | parseXML (const Pathname &tmpfile) const |
std::vector< Url > | parseTXT (const Pathname &tmpfile) const |
Private Attributes | |
std::vector< Url > | urls |
Definition at line 21 of file RepoMirrorList.h.
zypp::repo::RepoMirrorList::RepoMirrorList | ( | const Url & | url | ) |
Definition at line 82 of file RepoMirrorList.cc.
References zypp::Url::asString(), DBG, zypp::Url::getPathName(), and zypp::MediaSetAccess::provideFile().
zypp::repo::RepoMirrorList::RepoMirrorList | ( | const Url & | url, |
const Pathname & | metadatapath | ||
) |
Definition at line 32 of file RepoMirrorList.cc.
References zypp::filesystem::assert_dir(), zypp::Url::asString(), zypp::iostr::copy(), DBG, zypp::Url::getPathName(), zypp::filesystem::PathInfo::isFile(), zypp::filesystem::PathInfo::mtime(), zypp::MediaSetAccess::provideFile(), and zypp::filesystem::unlink().
zypp::repo::RepoMirrorList::~RepoMirrorList | ( | ) | [virtual] |
Definition at line 153 of file RepoMirrorList.cc.
std::vector< Url > zypp::repo::RepoMirrorList::getUrls | ( | ) | const |
Definition at line 148 of file RepoMirrorList.cc.
Referenced by zypp::RepoInfo::Impl::baseUrls().
void zypp::repo::RepoMirrorList::setUrls | ( | std::vector< Url > | my_urls | ) | [private] |
Definition at line 110 of file RepoMirrorList.cc.
std::vector< Url > zypp::repo::RepoMirrorList::parseXML | ( | const Pathname & | tmpfile | ) | const [private] |
Definition at line 128 of file RepoMirrorList.cc.
References zypp::media::MetaLinkParser::getUrls(), and zypp::media::MetaLinkParser::parse().
std::vector< Url > zypp::repo::RepoMirrorList::parseTXT | ( | const Pathname & | tmpfile | ) | const [private] |
Definition at line 136 of file RepoMirrorList.cc.
References zypp::iostr::getline(), and zypp::InputStream::stream().
std::vector<Url> zypp::repo::RepoMirrorList::urls [private] |
Definition at line 31 of file RepoMirrorList.h.