libzypp
17.14.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
51
class
RepoFileReader
52
{
53
friend
std::ostream &
operator<<
( std::ostream & str,
const
RepoFileReader
& obj );
54
public
:
55
64
typedef
function< bool( const RepoInfo & )>
ProcessRepo
;
65
67
class
Impl
;
68
69
public
:
81
RepoFileReader
(
const
Pathname & repo_file,
82
const
ProcessRepo
& callback,
83
const
ProgressData::ReceiverFnc
&progress =
ProgressData::ReceiverFnc
() );
84
96
RepoFileReader
(
const
InputStream
&is,
97
const
ProcessRepo
& callback,
98
const
ProgressData::ReceiverFnc
&progress =
ProgressData::ReceiverFnc
() );
99
103
~RepoFileReader
();
104
private
:
105
ProcessRepo
_callback
;
106
};
108
110
std::ostream &
operator<<
( std::ostream & str,
const
RepoFileReader
& obj );
111
113
}
// namespace parser
116
}
// namespace zypp
118
#endif // ZYPP_REPO_REPOFILEREADER_H
zypp
parser
RepoFileReader.h
Generated by
1.8.2