libzypp 17.31.23
zsyncparser.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_CURL_PARSER_ZSYNCPARSER_H
13#define ZYPP_CURL_PARSER_ZSYNCPARSER_H
14
15#include <string>
16
17#include <zypp-core/base/Exception.h>
18#include <zypp-core/base/NonCopyable.h>
19#include <zypp-curl/parser/MediaBlockList>
20#include <zypp-core/Url.h>
21
22namespace zypp {
23 namespace media {
24
26public:
28
33 void parse( const Pathname &filename );
37 std::vector<Url> getUrls();
42
43private:
44 off_t filesize;
45 size_t blksize;
46 int sql;
47 int rsl;
48 int csl;
50 std::vector<std::string> urls;
51};
52
53 } // namespace media
54} // namespace zypp
55
56#endif // ZYPP_CURL_PARSER_ZSYNCPARSER_H
void parse(const Pathname &filename)
parse a file consisting of zlink data
Definition: zsyncparser.cc:77
MediaBlockList getBlockList()
return the block list from the parsed metalink data
Definition: zsyncparser.cc:197
std::vector< std::string > urls
Definition: zsyncparser.h:50
std::vector< Url > getUrls()
return the download urls from the parsed metalink data
Definition: zsyncparser.cc:187
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition: NonCopyable.h:26
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2