libzypp  17.14.0
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