libzypp  15.28.6
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"
16 #include "zypp/base/NonCopyable.h"
17 #include "zypp/base/Function.h"
18 
19 #include "zypp/OnMediaLocation.h"
21 
22 namespace zypp
23 {
24  namespace parser
25  {
26  namespace yum
27  {
28 
29 
47  {
48  public:
50  typedef function< bool( const OnMediaLocation &, const repo::yum::ResourceType & )> ProcessResource;
51 
53  typedef function< bool( const OnMediaLocation &, const repo::yum::ResourceType &, const std::string & )> ProcessResource2;
54 
63  RepomdFileReader( const Pathname & repomd_file, const ProcessResource & callback );
65  RepomdFileReader( const Pathname & repomd_file, const ProcessResource2 & callback );
66 
69 
70  private:
71  class Impl;
73  };
74 
75 
76  } // namespace yum
77  } // namespace parser
78 } // namespace zypp
79 
80 #endif // zypp_source_yum_RepomdFileReader_H
RepomdFileReader(const Pathname &repomd_file, const ProcessResource &callback)
CTOR.
function< bool(const OnMediaLocation &, const repo::yum::ResourceType &, const std::string &)> ProcessResource2
Alternate callback also receiving the ResourceType as string.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition: NonCopyable.h:26
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
Reads through a repomd.xml file and collects type, location, checksum and other data about metadata f...
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:285
function< bool(const OnMediaLocation &, const repo::yum::ResourceType &)> ProcessResource
Callbacl taking OnMediaLocation and repo::yum::ResourceType.