libzypp
11.13.5
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libzypp
Welcome to libzypp
Code Pitfalls - Frequently made mistakes
Code Snippets
Environment Variables
Testing for provided features.
Notes on revisions
Extending ZYpp: Plugins and Hooks
Services
Solver - Vendor protection
Writing and tunning testcases
Libzypp and threads
Todo List
Deprecated List
Modules
Namespaces
Classes
Files
File List
zypp
base
media
misc
parser
plaindir
susetags
ws
xml
yum
HistoryLogReader.cc
HistoryLogReader.h
IniDict.cc
IniDict.h
IniParser.cc
IniParser.h
ParseException.cc
ParseException.h
ParserProgress.h
ProductFileReader.cc
ProductFileReader.h
RepoFileReader.cc
RepoFileReader.h
RepoindexFileReader.cc
RepoindexFileReader.h
ServiceFileReader.cc
ServiceFileReader.h
pool
repo
sat
solver
target
thread
ui
url
ws
zypp_detail
APIConfig.h
Arch.cc
Arch.h
AutoDispose.h
Bit.h
ByteCount.cc
ByteCount.h
Callback.h
Capabilities.cc
Capabilities.h
Capability.cc
Capability.h
CapMatch.cc
CapMatch.h
Changelog.cc
Changelog.h
CheckSum.cc
CheckSum.h
CountryCode.cc
CountryCode.h
Date.cc
Date.h
Dep.cc
Dep.h
Digest.cc
Digest.h
DiskUsage.cc
DiskUsage.h
DiskUsageCounter.cc
DiskUsageCounter.h
DownloadMode.cc
DownloadMode.h
Edition.cc
Edition.h
ExternalProgram.cc
ExternalProgram.h
Fetcher.cc
Fetcher.h
FileChecker.cc
FileChecker.h
Filter.h
Glob.cc
Glob.h
HistoryLog.cc
HistoryLog.h
HistoryLogData.cc
HistoryLogData.h
IdString.cc
IdString.h
IdStringType.h
InstanceId.cc
InstanceId.h
KeyContext.h
KeyRing.cc
KeyRing.h
KVMap.h
LanguageCode.cc
LanguageCode.h
Locale.cc
Locale.h
Locks.cc
Locks.h
ManagedFile.h
MediaProducts.cc
MediaProducts.h
MediaSetAccess.cc
MediaSetAccess.h
Misc.h
OnMediaLocation.cc
OnMediaLocation.h
Package.cc
Package.h
PackageKeyword.h
Patch.cc
Patch.h
PathInfo.cc
PathInfo.h
Pathname.cc
Pathname.h
Pattern.cc
Pattern.h
PluginFrame.cc
PluginFrame.h
PluginFrameException.cc
PluginFrameException.h
PluginScript.cc
PluginScript.h
PluginScriptException.cc
PluginScriptException.h
PoolItem.cc
PoolItem.h
PoolItemBest.cc
PoolItemBest.h
PoolQuery.cc
PoolQuery.h
PoolQueryResult.cc
PoolQueryResult.h
PoolQueryUtil.tcc
ProblemSolution.cc
ProblemSolution.h
ProblemTypes.h
Product.cc
Product.h
ProgressData.cc
ProgressData.h
ProvideFilePolicy.cc
ProvideFilePolicy.h
PublicKey.cc
PublicKey.h
Range.cc
Range.h
Rel.cc
Rel.h
RelCompare.h
RepoInfo.cc
RepoInfo.h
RepoManager.cc
RepoManager.h
Repository.cc
Repository.h
RepoStatus.cc
RepoStatus.h
ResFilters.h
ResKind.cc
ResKind.h
ResObject.cc
ResObject.h
ResObjects.h
Resolvable.cc
Resolvable.h
Resolver.cc
Resolver.h
ResolverProblem.cc
ResolverProblem.h
ResPool.cc
ResPool.h
ResPoolProxy.cc
ResPoolProxy.h
ResStatus.cc
ResStatus.h
ResTraits.h
ServiceInfo.cc
ServiceInfo.h
Signature.cc
Signature.h
SrcPackage.cc
SrcPackage.h
SysContent.cc
SysContent.h
Target.cc
Target.h
TmpPath.cc
TmpPath.h
TriBool.h
Url.cc
Url.h
Vendor.h
VendorAttr.cc
VendorAttr.h
VendorSupportOptions.cc
VendorSupportOptions.h
ZConfig.cc
ZConfig.h
ZYpp.cc
ZYpp.h
ZYppCallbacks.h
ZYppCommit.h
ZYppCommitPolicy.cc
ZYppCommitPolicy.h
ZYppCommitResult.cc
ZYppCommitResult.h
ZYppFactory.cc
ZYppFactory.h
File Members
ProductFileReader.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------\
2
| ____ _ __ __ ___ |
3
| |__ / \ / / . \ . \ |
4
| / / \ V /| _/ _/ |
5
| / /__ | | | | | | |
6
| /_____||_| |_| |_| |
7
| |
8
\---------------------------------------------------------------------*/
12
#ifndef ZYPP_PARSER_PRODUCTSDREADER_H
13
#define ZYPP_PARSER_PRODUCTSDREADER_H
14
15
#include <iosfwd>
16
17
#include "
zypp/base/PtrTypes.h
"
18
#include "
zypp/base/Function.h
"
19
#include "
zypp/base/InputStream.h
"
20
21
#include "
zypp/Pathname.h
"
22
#include "
zypp/IdString.h
"
23
#include "
zypp/Edition.h
"
24
#include "
zypp/Arch.h
"
25
27
namespace
zypp
28
{
29
30
namespace
parser
31
{
32
34
//
35
// CLASS NAME : ProductFileData
36
//
40
class
ProductFileData
41
{
42
public
:
43
class
Impl
;
45
ProductFileData
(
Impl
* allocated_r = 0 );
46
48
bool
empty
()
const
49
{
return
name
().
empty
(); }
50
51
public
:
52
IdString
vendor
()
const
;
53
IdString
name
()
const
;
54
Edition
edition
()
const
;
55
Arch
arch
()
const
;
56
57
std::string
shortName
()
const
;
58
std::string
summary
()
const
;
59
60
public
:
61
std::string
productline
()
const
;
62
std::string
registerTarget
()
const
;
63
std::string
registerRelease
()
const
;
64
65
public
:
66
std::string
updaterepokey
()
const
;
67
68
public
:
70
71
struct
Upgrade
72
{
73
public
:
74
class
Impl
;
76
Upgrade
(
Impl
* allocated_r = 0 );
77
78
public
:
79
std::string
name
()
const
;
80
std::string
summary
()
const
;
81
std::string
repository
()
const
;
82
std::string
product
()
const
;
83
bool
notify
()
const
;
84
std::string
status
()
const
;
85
86
private
:
87
RWCOW_pointer<Impl>
_pimpl
;
88
};
90
91
typedef
std::vector<Upgrade>
Upgrades
;
92
const
Upgrades
&
upgrades
()
const
;
93
94
private
:
95
RWCOW_pointer<Impl>
_pimpl
;
96
};
98
100
std::ostream &
operator<<
( std::ostream & str,
const
ProductFileData
& obj );
101
103
std::ostream &
operator<<
( std::ostream & str,
const
ProductFileData::Upgrade
& obj );
104
106
//
107
// CLASS NAME : ProductFileReader
108
//
119
class
ProductFileReader
120
{
121
public
:
125
typedef
function<bool( const ProductFileData & )>
Consumer
;
126
127
public
:
128
ProductFileReader
()
129
{}
130
131
ProductFileReader
(
const
Consumer
& consumer_r )
132
:
_consumer
( consumer_r )
133
{}
134
135
ProductFileReader
(
const
Consumer
& consumer_r,
const
InputStream
& input_r )
136
:
_consumer
( consumer_r )
137
{
parse
( input_r ); }
138
139
public
:
140
const
Consumer
&
consumer
()
const
141
{
return
_consumer
; }
142
143
void
setConsumer
(
const
Consumer
& consumer_r )
144
{
_consumer
= consumer_r; }
145
146
public
:
152
bool
parse
(
const
InputStream
& input_r =
InputStream
() )
const
;
153
154
public
:
160
static
bool
scanDir
(
const
Consumer
& consumer_r,
const
Pathname & dir_r );
161
164
static
ProductFileData
scanFile
(
const
Pathname & file_r );
165
166
private
:
167
Consumer
_consumer
;
168
};
170
172
}
// namespace parser
175
}
// namespace zypp
177
#endif // ZYPP_PARSER_PRODUCTSDREADER_H
zypp
parser
ProductFileReader.h
Generated by
1.8.1