libzypp  17.14.0
zypp::media::ZsyncParser Class Reference

#include <ZsyncParser.h>

Inheritance diagram for zypp::media::ZsyncParser:

Public Member Functions

 ZsyncParser ()
 
void parse (std::string filename)
 parse a file consisting of zlink data 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

off_t filesize
 
size_t blksize
 
int sql
 
int rsl
 
int csl
 
MediaBlockList bl
 
std::vector< std::string > urls
 

Detailed Description

Definition at line 25 of file ZsyncParser.h.

Constructor & Destructor Documentation

◆ ZsyncParser()

zypp::media::ZsyncParser::ZsyncParser ( )

Definition at line 31 of file ZsyncParser.cc.

Member Function Documentation

◆ parse()

void zypp::media::ZsyncParser::parse ( std::string  filename)

parse a file consisting of zlink data

Exceptions
Exception

Definition at line 64 of file ZsyncParser.cc.

◆ getUrls()

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

return the download urls from the parsed metalink data

Definition at line 129 of file ZsyncParser.cc.

◆ getBlockList()

MediaBlockList zypp::media::ZsyncParser::getBlockList ( )

return the block list from the parsed metalink data

Definition at line 139 of file ZsyncParser.cc.

Member Data Documentation

◆ filesize

off_t zypp::media::ZsyncParser::filesize
private

Definition at line 44 of file ZsyncParser.h.

◆ blksize

size_t zypp::media::ZsyncParser::blksize
private

Definition at line 45 of file ZsyncParser.h.

◆ sql

int zypp::media::ZsyncParser::sql
private

Definition at line 46 of file ZsyncParser.h.

◆ rsl

int zypp::media::ZsyncParser::rsl
private

Definition at line 47 of file ZsyncParser.h.

◆ csl

int zypp::media::ZsyncParser::csl
private

Definition at line 48 of file ZsyncParser.h.

◆ bl

MediaBlockList zypp::media::ZsyncParser::bl
private

Definition at line 49 of file ZsyncParser.h.

◆ urls

std::vector<std::string> zypp::media::ZsyncParser::urls
private

Definition at line 50 of file ZsyncParser.h.


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