libzypp 17.31.23
RepomdFileReader.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef zypp_source_yum_RepomdFileReader_H
13#define zypp_source_yum_RepomdFileReader_H
14
15#include <set>
16
17#include <zypp/base/PtrTypes.h>
18#include <zypp/base/NonCopyable.h>
19#include <zypp/base/Function.h>
20
21#include <zypp-core/OnMediaLocation>
22
23namespace zypp
24{
25 namespace parser
26 {
27 namespace yum
28 {
29
30
39 {
40 public:
42 typedef function< bool( OnMediaLocation &&, const std::string & )> ProcessResource;
43
52 RepomdFileReader( const Pathname & repomd_file, const ProcessResource & callback );
54 RepomdFileReader( const Pathname & repomd_file );
55
58
59 public:
61 const std::set<std::string> & keywords() const;
62
64 std::vector<std::pair<std::string,std::string>> keyhints() const;
65
66 private:
67 class Impl;
69 };
70
71
72 } // namespace yum
73 } // namespace parser
74} // namespace zypp
75
76#endif // zypp_source_yum_RepomdFileReader_H
Describes a resource file located on a medium.
Reads through a repomd.xml file and collects type, location, checksum and other data about metadata f...
function< bool(OnMediaLocation &&, const std::string &)> ProcessResource
Callback taking OnMediaLocation and the resource type string.
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
const std::set< std::string > & keywords() const
repo keywords parsed on the fly
std::vector< std::pair< std::string, std::string > > keyhints() const
gpg key hits shipped in keywords (bsc#1184326)
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
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:286