libzypp  17.24.1
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>
20 
21 namespace 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
RepomdFileReader(const Pathname &repomd_file, const ProcessResource &callback)
CTOR.
function< bool(OnMediaLocation &&, const std::string &)> ProcessResource
Callback taking OnMediaLocation and the resource type 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
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1