libzypp  17.14.0
zypp::media::MetaLinkParser Class Reference

#include <MetaLinkParser.h>

Inheritance diagram for zypp::media::MetaLinkParser:

Public Member Functions

 MetaLinkParser ()
 
 ~MetaLinkParser ()
 
void parse (const Pathname &filename)
 parse a file consisting of metalink xml data More...
 
void parse (const InputStream &is)
 parse an InputStream consisting of metalink xml data More...
 
void parseBytes (const char *bytes, size_t len)
 parse a chunk of a file consisting of metalink xml data. More...
 
void parseEnd ()
 tells the parser that all chunks are now processed More...
 
std::vector< UrlgetUrls ()
 return the download urls from the parsed metalink data More...
 
MediaBlockList getBlockList ()
 return the block list from the parsed metalink data More...
 

Private Attributes

struct ml_parsedatapd
 

Detailed Description

Definition at line 28 of file MetaLinkParser.h.

Constructor & Destructor Documentation

◆ MetaLinkParser()

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

Definition at line 421 of file MetaLinkParser.cc.

◆ ~MetaLinkParser()

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

Definition at line 425 of file MetaLinkParser.cc.

Member Function Documentation

◆ parse() [1/2]

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

parse a file consisting of metalink xml data

Exceptions
Exception

Definition at line 431 of file MetaLinkParser.cc.

◆ parse() [2/2]

void zypp::media::MetaLinkParser::parse ( const InputStream is)

parse an InputStream consisting of metalink xml data

Exceptions
Exception

Definition at line 437 of file MetaLinkParser.cc.

◆ parseBytes()

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 451 of file MetaLinkParser.cc.

◆ parseEnd()

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

tells the parser that all chunks are now processed

Exceptions
Exception

Definition at line 467 of file MetaLinkParser.cc.

◆ getUrls()

std::vector< Url > zypp::media::MetaLinkParser::getUrls ( )

return the download urls from the parsed metalink data

Definition at line 477 of file MetaLinkParser.cc.

◆ getBlockList()

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

return the block list from the parsed metalink data

Definition at line 487 of file MetaLinkParser.cc.

Member Data Documentation

◆ pd

struct ml_parsedata* zypp::media::MetaLinkParser::pd
private

Definition at line 66 of file MetaLinkParser.h.


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