libzypp  13.10.6
PatchesFileReader.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef zypp_source_yum_PatchesFileReader_H
13 #define zypp_source_yum_PatchesFileReader_H
14 
15 #include "zypp/base/PtrTypes.h"
16 #include "zypp/base/NonCopyable.h"
17 #include "zypp/base/Function.h"
18 
19 
20 namespace zypp
21 {
22  namespace parser
23  {
24  namespace yum
25  {
26 
27 
41  {
42  public:
43 
49  typedef
50  function<bool( const OnMediaLocation &, const std::string & )>
52 
53 
62  PatchesFileReader(const Pathname &patches_file,
63  const ProcessResource & callback);
64 
69 
70  private:
71  class Impl;
73  };
74 
75 
76  } // ns yum
77  } // ns parser
78 } // ns zypp
79 
80 #endif /*zypp_source_yum_PatchesFileReader_H*/
81 
82 // vim: set ts=2 sts=2 sw=2 et ai:
Iterates through a patches.xml file giving on each iteration a OnMediaLocation object with the resour...
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition: NonCopyable.h:26
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:265
PatchesFileReader(const Pathname &patches_file, const ProcessResource &callback)
CTOR.
function< bool(const OnMediaLocation &, const std::string &)> ProcessResource
Callback definition first parameter is a OnMediaLocation object with the resource second parameter is...