libzypp  13.10.6
RepoindexFileReader.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef zypp_source_yum_RepoindexFileReader_H
13 #define zypp_source_yum_RepoindexFileReader_H
14 
15 #include "zypp/base/PtrTypes.h"
16 #include "zypp/base/NonCopyable.h"
17 #include "zypp/base/Function.h"
18 #include "zypp/base/InputStream.h"
19 #include "zypp/Pathname.h"
20 
21 namespace zypp
22 {
23  class RepoInfo;
24 
25  namespace parser
26  {
27 
44  {
45  public:
51  typedef function< bool(
52  const RepoInfo & )>
54 
63  RepoindexFileReader( const zypp::Pathname & repoindexFile,
64  const ProcessResource & callback);
65 
75  const ProcessResource & callback );
76 
81 
82  private:
83  class Impl;
85  };
86 
87 
88  } // ns parser
89 } // ns zypp
90 
91 #endif /*zypp_source_yum_RepoindexFileReader_H*/
92 
93 // vim: set ts=2 sts=2 sw=2 et ai:
function< bool(const RepoInfo &)> ProcessResource
Callback definition.
Reads through a repoindex.xml file and collects repositories.
What is known about a repository.
Definition: RepoInfo.h:66
Helper to create and pass std::istream.
Definition: InputStream.h:56
RepoindexFileReader(const zypp::Pathname &repoindexFile, const ProcessResource &callback)
CTOR.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
Definition: NonCopyable.h:26
Wrapper for const correct access via Smart pointer types.
Definition: PtrTypes.h:265
RW_pointer< Impl, rw_pointer::Scoped< Impl > > _pimpl