libzypp 8.13.6
Public Member Functions | Private Attributes

zypp::media::MetaLinkParser Class Reference

#include <MetaLinkParser.h>

Inheritance diagram for zypp::media::MetaLinkParser:
Inheritance graph
[legend]

List of all members.

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< UrlgetUrls ()
 return the download urls from the parsed metalink data
MediaBlockList getBlockList ()
 return the block list from the parsed metalink data

Private Attributes

struct ml_parsedatapd

Detailed Description

Definition at line 28 of file MetaLinkParser.h.


Constructor & Destructor Documentation

zypp::media::MetaLinkParser::MetaLinkParser ( )
zypp::media::MetaLinkParser::~MetaLinkParser ( )

Definition at line 381 of file MetaLinkParser.cc.


Member Function Documentation

void zypp::media::MetaLinkParser::parse ( const Pathname &  filename)

parse a file consisting of metalink xml data

Exceptions:
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

Exceptions:
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.

Exceptions:
Exception

Definition at line 409 of file MetaLinkParser.cc.

References ZYPP_THROW.

void zypp::media::MetaLinkParser::parseEnd ( )

tells the parser that all chunks are now processed

Exceptions:
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().

MediaBlockList zypp::media::MetaLinkParser::getBlockList ( )

Member Data Documentation

Definition at line 66 of file MetaLinkParser.h.


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