libzypp  11.13.5
RepoFileReader.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #ifndef ZYPP_REPO_REPOFILEREADER_H
13 #define ZYPP_REPO_REPOFILEREADER_H
14 
15 #include <iosfwd>
16 
17 #include "zypp/base/PtrTypes.h"
18 #include "zypp/base/InputStream.h"
19 #include "zypp/RepoInfo.h"
20 #include "zypp/ProgressData.h"
21 
23 namespace zypp
24 {
25 
26  namespace parser
27  {
28 
43  {
44  friend std::ostream & operator<<( std::ostream & str, const RepoFileReader & obj );
45  public:
46 
55  typedef function< bool( const RepoInfo & )> ProcessRepo;
56 
58  class Impl;
59 
60  public:
72  RepoFileReader( const Pathname & repo_file,
73  const ProcessRepo & callback,
75 
87  RepoFileReader( const InputStream &is,
88  const ProcessRepo & callback,
90 
95  private:
97  };
99 
101  std::ostream & operator<<( std::ostream & str, const RepoFileReader & obj );
102 
104  } // namespace parser
107 } // namespace zypp
109 #endif // ZYPP_REPO_REPOFILEREADER_H