|
libzypp
9.1.2
|
#include <MetaLinkParser.h>

Public Member Functions | |
| MetaLinkParser () | |
| ~MetaLinkParser () | |
| void | parse (const Pathname &filename) |
| parse a file consisting of metalink xml data | |
| void | parse (const InputStream &is) |
| parse an InputStream consisting of metalink xml data | |
| void | parseBytes (const char *bytes, size_t len) |
| parse a chunk of a file consisting of metalink xml data. | |
| void | parseEnd () |
| tells the parser that all chunks are now processed | |
| std::vector< Url > | getUrls () |
| return the download urls from the parsed metalink data | |
| MediaBlockList | getBlockList () |
| return the block list from the parsed metalink data | |
Private Attributes | |
| struct ml_parsedata * | pd |
Definition at line 28 of file MetaLinkParser.h.
Definition at line 359 of file MetaLinkParser.cc.
References zypp::media::characterData(), zypp::media::endElement(), zypp::media::stateswitch::from, zypp::media::NUMSTATES, zypp::media::startElement(), zypp::media::stateswitches, and zypp::media::stateswitch::to.
Definition at line 381 of file MetaLinkParser.cc.
| void zypp::media::MetaLinkParser::parse | ( | const Pathname & | filename | ) |
parse a file consisting of metalink xml data
| Exception |
Definition at line 389 of file MetaLinkParser.cc.
Referenced by zypp::media::MediaMultiCurl::doGetFileCopy(), and zypp::repo::RepoMirrorList::parseXML().
| void zypp::media::MetaLinkParser::parse | ( | const InputStream & | is | ) |
parse an InputStream consisting of metalink xml data
| Exception |
Definition at line 395 of file MetaLinkParser.cc.
References zypp::InputStream::stream(), and ZYPP_THROW.
| void zypp::media::MetaLinkParser::parseBytes | ( | const char * | bytes, |
| size_t | len | ||
| ) |
parse a chunk of a file consisting of metalink xml data.
| Exception |
Definition at line 409 of file MetaLinkParser.cc.
References ZYPP_THROW.
tells the parser that all chunks are now processed
| Exception |
Definition at line 423 of file MetaLinkParser.cc.
References zypp::media::urlcmp(), and ZYPP_THROW.
| std::vector< Url > zypp::media::MetaLinkParser::getUrls | ( | ) |
return the download urls from the parsed metalink data
Definition at line 432 of file MetaLinkParser.cc.
Referenced by zypp::media::MediaMultiCurl::doGetFileCopy(), and zypp::repo::RepoMirrorList::parseXML().
return the block list from the parsed metalink data
Definition at line 442 of file MetaLinkParser.cc.
References zypp::media::MediaBlockList::addBlock(), zypp::media::MediaBlockList::setChecksum(), zypp::media::MediaBlockList::setFileChecksum(), and zypp::media::MediaBlockList::setRsum().
Referenced by zypp::media::MediaMultiCurl::doGetFileCopy().
struct ml_parsedata* zypp::media::MetaLinkParser::pd [private] |
Definition at line 66 of file MetaLinkParser.h.
1.7.6.1