#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(), parseTXT(), parseXML(), zypp::MediaSetAccess::provideFile(), and setUrls().
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::filesystem::copy(), DBG, zypp::Url::getPathName(), zypp::ZConfig::instance(), zypp::filesystem::PathInfo::isFile(), zypp::filesystem::PathInfo::mtime(), parseTXT(), parseXML(), zypp::MediaSetAccess::provideFile(), zypp::ZConfig::repo_refresh_delay(), setUrls(), zypp::filesystem::unlink(), and urls.
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.
References urls.
Referenced by zypp::RepoInfo::Impl::baseUrls().
void zypp::repo::RepoMirrorList::setUrls | ( | std::vector< Url > | my_urls | ) | [private] |
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().
Referenced by RepoMirrorList().
std::vector< Url > zypp::repo::RepoMirrorList::parseTXT | ( | const Pathname & | tmpfile | ) | const [private] |
Definition at line 136 of file RepoMirrorList.cc.
References zypp::str::getline(), and zypp::InputStream::stream().
Referenced by RepoMirrorList().
std::vector<Url> zypp::repo::RepoMirrorList::urls [private] |
Definition at line 31 of file RepoMirrorList.h.
Referenced by getUrls(), RepoMirrorList(), and setUrls().