libzypp 17.25.7
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 <zypp/base/PtrTypes.h>
17#include <zypp/base/Function.h>
18
20
21namespace zypp
22{
23 namespace parser
24 {
25 namespace yum
26 {
27
28
37 {
38 public:
40 typedef function< bool( OnMediaLocation &&, const std::string & )> ProcessResource;
41
50 RepomdFileReader( const Pathname & repomd_file, const ProcessResource & callback );
51
54
55 private:
56 class Impl;
58 };
59
60
61 } // namespace yum
62 } // namespace parser
63} // namespace zypp
64
65#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
RepomdFileReader(const Pathname &repomd_file, const ProcessResource &callback)
CTOR.
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