libzypp 17.38.5

providespec.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12
13#include <iostream>
14#include <utility>
15#include "providespec.h"
16
17 using std::endl;
18
19 namespace zyppng
20{
21 class ProvideSpecBasePrivate
22 {
23 public:
24 ProvideSpecBasePrivate() {}
25 ProvideSpecBasePrivate(const ProvideSpecBasePrivate &) = default;
26 ProvideSpecBasePrivate(ProvideSpecBasePrivate &&) = delete;
27 ProvideSpecBasePrivate &operator=(const ProvideSpecBasePrivate &) = delete;
28 ProvideSpecBasePrivate &operator=(ProvideSpecBasePrivate &&) = delete;
29 virtual ~ProvideSpecBasePrivate() {}
30 HeaderValueMap _customHeaders;
31 };
32
33
34 class ProvideMediaSpec::Impl : public ProvideSpecBasePrivate
35 {
36 public:
37 Impl()
38 {}
39
40 Impl( std::string &&label, zypp::Pathname &&vPath, unsigned medianr )
41 : _label(std::move( label ))
42 , _medianr( medianr )
43 , _verifyDataPath(std::move(vPath))
44 {}
45
46 std::string _label;
47 unsigned _medianr = 0U;
48 zypp::Pathname _verifyDataPath;
49
50 public:
52 static zypp::shared_ptr<Impl> nullimpl()
53 { static zypp::shared_ptr<Impl> _nullimpl( new Impl ); return _nullimpl; }
54
55 private:
56 friend ProvideMediaSpec::Impl * zypp::rwcowClone<ProvideMediaSpec::Impl>( const ProvideMediaSpec::Impl * rhs );
57 Impl * clone() const { return new Impl( *this ); }
58 };
59
60 class ProvideFileSpec::Impl : public ProvideSpecBasePrivate
61 {
62 public:
63 Impl()
64 {}
65
66 zypp::Pathname _destFilenameHint;
67 zypp::Pathname _mediaSpecFile;
68 bool _checkExistsOnly = false;
69
70 bool _optional = false;
71 zypp::ByteCount _downloadSize;
72 zypp::CheckSum _checksum;
73
74 zypp::ByteCount _openSize;
75 zypp::CheckSum _openChecksum;
76
77 zypp::ByteCount _headerSize;
78 zypp::CheckSum _headerChecksum;
79
80 zypp::Pathname _deltafile;
81
82 bool _mirrorsAllowed = true;
83
84 public:
86 static zypp::shared_ptr<Impl> nullimpl()
87 { static zypp::shared_ptr<Impl> _nullimpl( new Impl ); return _nullimpl; }
88
89 private:
90 friend ProvideFileSpec::Impl * zypp::rwcowClone<ProvideFileSpec::Impl>( const ProvideFileSpec::Impl * rhs );
91 Impl * clone() const { return new Impl( *this ); }
92 };
93
94
95 ProvideMediaSpec::ProvideMediaSpec( std::string label, zypp::filesystem::Pathname verifyData, unsigned medianr )
96 : _pimpl( new Impl( std::move(label), std::move(verifyData), medianr ) )
97 {
98
99 }
100
101 const std::string &ProvideMediaSpec::label() const
102 { return _pimpl->_label; }
103
104 ProvideMediaSpec &ProvideMediaSpec::setLabel(const std::string &label)
105 {
106 _pimpl->_label = label;
107 return *this;
108 }
109
110 unsigned ProvideMediaSpec::medianr() const
111 { return _pimpl->_medianr; }
112
113 ProvideMediaSpec &ProvideMediaSpec::setMedianr(unsigned medianr)
114 {
115 _pimpl->_medianr = medianr;
116 return *this;
117 }
118
119 zypp::filesystem::Pathname ProvideMediaSpec::mediaFile() const
120 { return _pimpl->_verifyDataPath; }
121
122 ProvideMediaSpec &ProvideMediaSpec::setMediaFile(const zypp::filesystem::Pathname &pName)
123 {
124 _pimpl->_verifyDataPath = pName;
125 return *this;
126 }
127
128 HeaderValueMap &ProvideMediaSpec::customHeaders()
129 { return _pimpl->_customHeaders; }
130
131 const HeaderValueMap &ProvideMediaSpec::customHeaders() const
132 { return _pimpl->_customHeaders; }
133
134 ProvideMediaSpec &ProvideMediaSpec::setCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
135 {
136 _pimpl->_customHeaders.set( key,val );
137 return *this;
138 }
139
140 ProvideMediaSpec &ProvideMediaSpec::addCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
141 {
142 _pimpl->_customHeaders.add( key,val );
143 return *this;
144 }
145
146 zypp::TriBool ProvideMediaSpec::isSameMedium( const ProvideMediaSpec &other ) const
147 {
148 // first check if we have the same media data
149 if ( _pimpl->_verifyDataPath != other._pimpl->_verifyDataPath )
150 return false;
151
152 // if the verify file is not empty check the medianr
153 if ( !_pimpl->_verifyDataPath.empty() ) {
154 return _pimpl->_medianr == other._pimpl->_medianr;
155 }
156
157 // can't tell without the URL
158 return zypp::indeterminate;
159 }
160
161 bool ProvideMediaSpec::isSameMedium( const zypp::MirroredOrigin &originA, const ProvideMediaSpec &specA, const zypp::MirroredOrigin &originB, const ProvideMediaSpec &specB )
162 {
163 const auto check = specA.isSameMedium(specB);
164 if ( !zypp::indeterminate (check) )
165 return (bool)check;
166
167 // if the endpoints intersect we assume same medium
168 const auto &intersects = []( const zypp::MirroredOrigin &l1, const zypp::MirroredOrigin &l2 ){
169 bool intersect = false;
170 for ( const auto &u: l1 ) {
171 intersect = ( std::find( l2.begin (), l2.end(), u ) != l2.end() );
172 if ( intersect )
173 break;
174 }
175 return intersect;
176 };
177
178 return intersects( originA, originB );
179 }
180
182 inline std::ostream & operator<<( std::ostream & str, const ProvideFileSpec::Impl & obj )
183 {
184 return str << "{" << obj._destFilenameHint << "{" << obj._downloadSize << "|" << obj._checksum << "|" << obj._deltafile << "}" << "}";
185 }
186
188 inline std::ostream & dumpOn( std::ostream & str, const ProvideFileSpec::Impl & obj )
189 { return str << obj; }
190
191
192 ProvideFileSpec::ProvideFileSpec()
193 : _pimpl( new Impl() )
194 {}
195
196 ProvideFileSpec::ProvideFileSpec( const zypp::OnMediaLocation &loc )
197 : _pimpl( new Impl() )
198 {
199 setDownloadSize( loc.downloadSize() );
200 setOptional( loc.optional() );
201 setChecksum( loc.checksum() );
202 setOpenSize( loc.openSize() );
203 setOpenChecksum( loc.openChecksum() );
204 setHeaderSize( loc.headerSize() );
205 setHeaderChecksum( loc.headerChecksum() );
206 setDeltafile( loc.deltafile() );
207 }
208
209 ProvideFileSpec::~ProvideFileSpec()
210 {}
211
212 const zypp::filesystem::Pathname &ProvideFileSpec::destFilenameHint() const
213 { return _pimpl->_destFilenameHint; }
214
215 ProvideFileSpec &ProvideFileSpec::setDestFilenameHint(const zypp::filesystem::Pathname &filename)
216 { _pimpl->_destFilenameHint = filename; return *this; }
217
218 bool ProvideFileSpec::checkExistsOnly() const
219 { return _pimpl->_checkExistsOnly; }
220
221 ProvideFileSpec &ProvideFileSpec::setCheckExistsOnly(const bool set)
222 { _pimpl->_checkExistsOnly = set; return *this; }
223
224 bool ProvideFileSpec::optional() const
225 { return _pimpl->_optional; }
226
227 ProvideFileSpec & ProvideFileSpec::setOptional( bool val_r )
228 { _pimpl->_optional = (val_r); return *this; }
229
230 const zypp::ByteCount & ProvideFileSpec::downloadSize() const
231 { return _pimpl->_downloadSize; }
232
233 ProvideFileSpec & ProvideFileSpec::setDownloadSize( const zypp::ByteCount &val_r )
234 { _pimpl->_downloadSize = (val_r); return *this; }
235
236 const zypp::CheckSum & ProvideFileSpec::checksum() const
237 { return _pimpl->_checksum; }
238
239 ProvideFileSpec & ProvideFileSpec::setChecksum( const zypp::CheckSum &val_r )
240 { _pimpl->_checksum = (val_r); return *this; }
241
242 const zypp::ByteCount & ProvideFileSpec::openSize() const
243 { return _pimpl->_openSize; }
244
245 ProvideFileSpec & ProvideFileSpec::setOpenSize( const zypp::ByteCount &val_r )
246 { _pimpl->_openSize = (val_r); return *this; }
247
248 const zypp::CheckSum & ProvideFileSpec::openChecksum() const
249 { return _pimpl->_openChecksum; }
250
251 ProvideFileSpec & ProvideFileSpec::setOpenChecksum( const zypp::CheckSum &val_r )
252 { _pimpl->_openChecksum = (val_r); return *this; }
253
254 const zypp::ByteCount & ProvideFileSpec::headerSize() const
255 { return _pimpl->_headerSize; }
256
257 ProvideFileSpec & ProvideFileSpec::setHeaderSize( const zypp::ByteCount &val_r )
258 { _pimpl->_headerSize = (val_r); return *this; }
259
260 const zypp::CheckSum & ProvideFileSpec::headerChecksum() const
261 { return _pimpl->_headerChecksum; }
262
263 ProvideFileSpec & ProvideFileSpec::setHeaderChecksum( const zypp::CheckSum &val_r )
264 { _pimpl->_headerChecksum = (val_r); return *this; }
265
266 const zypp::Pathname &ProvideFileSpec::deltafile() const
267 { return _pimpl->_deltafile; }
268
269 ProvideFileSpec &ProvideFileSpec::setDeltafile( const zypp::Pathname &path )
270 { _pimpl->_deltafile = (path); return *this; }
271
272 bool ProvideFileSpec::mirrorsAllowed() const
273 { return _pimpl->_mirrorsAllowed; }
274
275 ProvideFileSpec &ProvideFileSpec::setMirrorsAllowed(bool set)
276 { _pimpl->_mirrorsAllowed = std::move(set); return *this; }
277
278 HeaderValueMap &ProvideFileSpec::customHeaders()
279 { return _pimpl->_customHeaders; }
280
281 const HeaderValueMap &ProvideFileSpec::customHeaders() const
282 { return _pimpl->_customHeaders; }
283
284 ProvideFileSpec &ProvideFileSpec::setCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
285 {
286 _pimpl->_customHeaders.set( key,val );
287 return *this;
288 }
289
290 ProvideFileSpec &ProvideFileSpec::addCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
291 {
292 _pimpl->_customHeaders.add( key,val );
293 return *this;
294 }
295
296 zypp::OnMediaLocation ProvideFileSpec::asOnMediaLocation( const zypp::Pathname &path, unsigned int mediaNr ) const
297 {
298 return zypp::OnMediaLocation( path, mediaNr )
299 .setDownloadSize( downloadSize() )
300 .setOptional( optional() )
301 .setChecksum( checksum() )
302 .setOpenSize( openSize() )
303 .setOpenChecksum( openChecksum() )
304 .setHeaderSize( headerSize() )
305 .setHeaderChecksum( headerChecksum() )
306 .setDeltafile( deltafile() )
307 .setMirrorsAllowed( mirrorsAllowed () );
308 }
309
310 std::ostream & operator<<( std::ostream & str, const ProvideFileSpec & obj )
311 { return str << *obj._pimpl; }
312
313 std::ostream & dumpOn( std::ostream & str, const ProvideFileSpec & obj )
314 { return dumpOn( str, *obj._pimpl ); }
315
316} // namespace zypp
zypp::ByteCount
Store and operate with byte count.
Definition ByteCount.h:32
zypp::CheckSum
Definition CheckSum.h:34
zypp::MirroredOrigin
Manages a data source characterized by an authoritative URL and a list of mirror URLs.
Definition MirroredOrigin.h:170
zypp::OnMediaLocation
Describes a resource file located on a medium.
Definition onmedialocation.h:37
zypp::OnMediaLocation::optional
bool optional() const
Whether this is an optional resource.
Definition onmedialocation.cc:111
zypp::OnMediaLocation::downloadSize
const ByteCount & downloadSize() const
The size of the resource on the server.
Definition onmedialocation.cc:117
zypp::OnMediaLocation::setDownloadSize
OnMediaLocation & setDownloadSize(ByteCount val_r)
Set the downloadSize.
Definition onmedialocation.cc:120
zypp::OnMediaLocation::setMirrorsAllowed
OnMediaLocation & setMirrorsAllowed(bool set=true)
Enables or disables the use of mirrors when fetching this file.
Definition onmedialocation.cc:162
zypp::OnMediaLocation::setOpenSize
OnMediaLocation & setOpenSize(ByteCount val_r)
Set the openSize.
Definition onmedialocation.cc:132
zypp::OnMediaLocation::openSize
const ByteCount & openSize() const
The size of the resource once it has been uncompressed or unpacked.
Definition onmedialocation.cc:129
zypp::OnMediaLocation::deltafile
const Pathname & deltafile() const
The existing deltafile that can be used to reduce download size ( zchunk or metalink ).
Definition onmedialocation.cc:153
zypp::OnMediaLocation::headerSize
const ByteCount & headerSize() const
The size of the header prepending the resource (e.g.
Definition onmedialocation.cc:141
zypp::OnMediaLocation::setChecksum
OnMediaLocation & setChecksum(CheckSum val_r)
Set the checksum.
Definition onmedialocation.cc:126
zypp::OnMediaLocation::headerChecksum
const CheckSum & headerChecksum() const
The checksum of the header prepending the resource (e.g.
Definition onmedialocation.cc:147
zypp::OnMediaLocation::setHeaderSize
OnMediaLocation & setHeaderSize(ByteCount val_r)
Set the headerSize.
Definition onmedialocation.cc:144
zypp::OnMediaLocation::checksum
const CheckSum & checksum() const
The checksum of the resource on the server.
Definition onmedialocation.cc:123
zypp::OnMediaLocation::openChecksum
const CheckSum & openChecksum() const
The checksum of the resource once it has been uncompressed or unpacked.
Definition onmedialocation.cc:135
zypp::OnMediaLocation::setOpenChecksum
OnMediaLocation & setOpenChecksum(CheckSum val_r)
Set the openChecksum.
Definition onmedialocation.cc:138
zypp::OnMediaLocation::setHeaderChecksum
OnMediaLocation & setHeaderChecksum(CheckSum val_r)
Set the headerChecksum.
Definition onmedialocation.cc:150
zypp::OnMediaLocation::setOptional
OnMediaLocation & setOptional(bool val)
Set whether the resource is optional.
Definition onmedialocation.cc:114
zypp::OnMediaLocation::setDeltafile
OnMediaLocation & setDeltafile(Pathname path)
Set the deltafile.
Definition onmedialocation.cc:156
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zyppng::HeaderValueMap
Definition headervaluemap.h:67
zyppng::HeaderValueMap::Value
HeaderValue Value
Definition headervaluemap.h:69
zyppng::ProvideFileSpec::Impl
Definition providespec.cc:61
zyppng::ProvideFileSpec::Impl::clone
Impl * clone() const
Definition providespec.cc:91
zyppng::ProvideFileSpec::Impl::_checksum
zypp::CheckSum _checksum
Definition providespec.cc:72
zyppng::ProvideFileSpec::Impl::Impl
Impl()
Definition providespec.cc:63
zyppng::ProvideFileSpec::Impl::_downloadSize
zypp::ByteCount _downloadSize
Definition providespec.cc:71
zyppng::ProvideFileSpec::Impl::_checkExistsOnly
bool _checkExistsOnly
Definition providespec.cc:68
zyppng::ProvideFileSpec::Impl::_openSize
zypp::ByteCount _openSize
Definition providespec.cc:74
zyppng::ProvideFileSpec::Impl::_openChecksum
zypp::CheckSum _openChecksum
Definition providespec.cc:75
zyppng::ProvideFileSpec::Impl::_headerChecksum
zypp::CheckSum _headerChecksum
Definition providespec.cc:78
zyppng::ProvideFileSpec::Impl::nullimpl
static zypp::shared_ptr< Impl > nullimpl()
Offer default Impl.
Definition providespec.cc:86
zyppng::ProvideFileSpec::Impl::_mirrorsAllowed
bool _mirrorsAllowed
Definition providespec.cc:82
zyppng::ProvideFileSpec::Impl::_optional
bool _optional
Definition providespec.cc:70
zyppng::ProvideFileSpec::Impl::_mediaSpecFile
zypp::Pathname _mediaSpecFile
Definition providespec.cc:67
zyppng::ProvideFileSpec::Impl::_deltafile
zypp::Pathname _deltafile
Definition providespec.cc:80
zyppng::ProvideFileSpec::Impl::_headerSize
zypp::ByteCount _headerSize
Definition providespec.cc:77
zyppng::ProvideFileSpec::Impl::_destFilenameHint
zypp::Pathname _destFilenameHint
Definition providespec.cc:66
zyppng::ProvideFileSpec::ProvideFileSpec
ProvideFileSpec()
Definition providespec.cc:192
zyppng::ProvideFileSpec::optional
bool optional() const
Whether this is an optional resource.
Definition providespec.cc:224
zyppng::ProvideFileSpec::setHeaderChecksum
ProvideFileSpec & setHeaderChecksum(const zypp::CheckSum &val_r)
Set the headerChecksum.
Definition providespec.cc:263
zyppng::ProvideFileSpec::openChecksum
const zypp::CheckSum & openChecksum() const
The checksum of the resource once it has been uncompressed or unpacked.
Definition providespec.cc:248
zyppng::ProvideFileSpec::setCustomHeaderValue
ProvideFileSpec & setCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
Definition providespec.cc:284
zyppng::ProvideFileSpec::setDeltafile
ProvideFileSpec & setDeltafile(const zypp::Pathname &path)
Set the deltafile.
Definition providespec.cc:269
zyppng::ProvideFileSpec::setCheckExistsOnly
ProvideFileSpec & setCheckExistsOnly(const bool set=true)
Definition providespec.cc:221
zyppng::ProvideFileSpec::~ProvideFileSpec
~ProvideFileSpec()
Dtor.
Definition providespec.cc:209
zyppng::ProvideFileSpec::customHeaders
HeaderValueMap & customHeaders()
Definition providespec.cc:278
zyppng::ProvideFileSpec::destFilenameHint
const zypp::Pathname & destFilenameHint() const
Definition providespec.cc:212
zyppng::ProvideFileSpec::setOptional
ProvideFileSpec & setOptional(bool val)
Set whether the resource is optional.
Definition providespec.cc:227
zyppng::ProvideFileSpec::downloadSize
const zypp::ByteCount & downloadSize() const
The size of the resource on the server.
Definition providespec.cc:230
zyppng::ProvideFileSpec::asOnMediaLocation
zypp::OnMediaLocation asOnMediaLocation(const zypp::Pathname &path, unsigned int mediaNr) const
Definition providespec.cc:296
zyppng::ProvideFileSpec::setOpenSize
ProvideFileSpec & setOpenSize(const zypp::ByteCount &val_r)
Set the openSize.
Definition providespec.cc:245
zyppng::ProvideFileSpec::setMirrorsAllowed
ProvideFileSpec & setMirrorsAllowed(bool set=true)
Enables or disables the use of mirrors when fetching this file.
Definition providespec.cc:275
zyppng::ProvideFileSpec::setChecksum
ProvideFileSpec & setChecksum(const zypp::CheckSum &val_r)
Set the checksum.
Definition providespec.cc:239
zyppng::ProvideFileSpec::mirrorsAllowed
bool mirrorsAllowed() const
The requested file is allowed to be fetched via mirrors ( defaults to true ).
Definition providespec.cc:272
zyppng::ProvideFileSpec::openSize
const zypp::ByteCount & openSize() const
The size of the resource once it has been uncompressed or unpacked.
Definition providespec.cc:242
zyppng::ProvideFileSpec::setOpenChecksum
ProvideFileSpec & setOpenChecksum(const zypp::CheckSum &val_r)
Set the openChecksum.
Definition providespec.cc:251
zyppng::ProvideFileSpec::deltafile
const zypp::Pathname & deltafile() const
The existing deltafile that can be used to reduce download size ( zchunk or metalink ).
Definition providespec.cc:266
zyppng::ProvideFileSpec::setDestFilenameHint
ProvideFileSpec & setDestFilenameHint(const zypp::Pathname &filename)
Definition providespec.cc:215
zyppng::ProvideFileSpec::_pimpl
zypp::RWCOW_pointer< Impl > _pimpl
Implementation class.
Definition providespec.h:204
zyppng::ProvideFileSpec::checksum
const zypp::CheckSum & checksum() const
The checksum of the resource on the server.
Definition providespec.cc:236
zyppng::ProvideFileSpec::setDownloadSize
ProvideFileSpec & setDownloadSize(const zypp::ByteCount &val_r)
Set the downloadSize.
Definition providespec.cc:233
zyppng::ProvideFileSpec::headerChecksum
const zypp::CheckSum & headerChecksum() const
The checksum of the header prepending the resource (e.g.
Definition providespec.cc:260
zyppng::ProvideFileSpec::setHeaderSize
ProvideFileSpec & setHeaderSize(const zypp::ByteCount &val_r)
Set the headerSize.
Definition providespec.cc:257
zyppng::ProvideFileSpec::addCustomHeaderValue
ProvideFileSpec & addCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
Definition providespec.cc:290
zyppng::ProvideFileSpec::headerSize
const zypp::ByteCount & headerSize() const
The size of the header prepending the resource (e.g.
Definition providespec.cc:254
zyppng::ProvideFileSpec::checkExistsOnly
bool checkExistsOnly() const
Definition providespec.cc:218
zyppng::ProvideMediaSpec::Impl
Definition providespec.cc:35
zyppng::ProvideMediaSpec::Impl::_label
std::string _label
Definition providespec.cc:46
zyppng::ProvideMediaSpec::Impl::nullimpl
static zypp::shared_ptr< Impl > nullimpl()
Offer default Impl.
Definition providespec.cc:52
zyppng::ProvideMediaSpec::Impl::_medianr
unsigned _medianr
Definition providespec.cc:47
zyppng::ProvideMediaSpec::Impl::Impl
Impl()
Definition providespec.cc:37
zyppng::ProvideMediaSpec::Impl::clone
Impl * clone() const
Definition providespec.cc:57
zyppng::ProvideMediaSpec::Impl::Impl
Impl(std::string &&label, zypp::Pathname &&vPath, unsigned medianr)
Definition providespec.cc:40
zyppng::ProvideMediaSpec::Impl::_verifyDataPath
zypp::Pathname _verifyDataPath
Definition providespec.cc:48
zyppng::ProvideMediaSpec::setMedianr
ProvideMediaSpec & setMedianr(unsigned medianr)
Definition providespec.cc:113
zyppng::ProvideMediaSpec::setLabel
ProvideMediaSpec & setLabel(const std::string &label)
Definition providespec.cc:104
zyppng::ProvideMediaSpec::ProvideMediaSpec
ProvideMediaSpec(std::string label="", zypp::Pathname verifyData=zypp::Pathname(), unsigned medianr=1)
Definition providespec.cc:95
zyppng::ProvideMediaSpec::customHeaders
HeaderValueMap & customHeaders()
Definition providespec.cc:128
zyppng::ProvideMediaSpec::isSameMedium
zypp::TriBool isSameMedium(const ProvideMediaSpec &other) const
Definition providespec.cc:146
zyppng::ProvideMediaSpec::medianr
unsigned medianr() const
Definition providespec.cc:110
zyppng::ProvideMediaSpec::setCustomHeaderValue
ProvideMediaSpec & setCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
Definition providespec.cc:134
zyppng::ProvideMediaSpec::mediaFile
zypp::Pathname mediaFile() const
Definition providespec.cc:119
zyppng::ProvideMediaSpec::setMediaFile
ProvideMediaSpec & setMediaFile(const zypp::Pathname &pName)
Definition providespec.cc:122
zyppng::ProvideMediaSpec::label
const std::string & label() const
Definition providespec.cc:101
zyppng::ProvideMediaSpec::_pimpl
zypp::RWCOW_pointer< Impl > _pimpl
Implementation class.
Definition providespec.h:90
zyppng::ProvideMediaSpec::addCustomHeaderValue
ProvideMediaSpec & addCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
Definition providespec.cc:140
zyppng::ProvideSpecBasePrivate::ProvideSpecBasePrivate
ProvideSpecBasePrivate()
Definition providespec.cc:24
zyppng::ProvideSpecBasePrivate::_customHeaders
HeaderValueMap _customHeaders
Definition providespec.cc:30
zyppng::ProvideSpecBasePrivate::operator=
ProvideSpecBasePrivate & operator=(const ProvideSpecBasePrivate &)=delete
zyppng::ProvideSpecBasePrivate::~ProvideSpecBasePrivate
virtual ~ProvideSpecBasePrivate()
Definition providespec.cc:29
zyppng::ProvideSpecBasePrivate::ProvideSpecBasePrivate
ProvideSpecBasePrivate(const ProvideSpecBasePrivate &)=default
zyppng::ProvideSpecBasePrivate::ProvideSpecBasePrivate
ProvideSpecBasePrivate(ProvideSpecBasePrivate &&)=delete
zyppng::ProvideSpecBasePrivate::operator=
ProvideSpecBasePrivate & operator=(ProvideSpecBasePrivate &&)=delete
zypp::TriBool
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
Definition String.h:31
std
Definition ansi.h:855
str
String related utilities and Regular expression matching.
zypp::dumpOn
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
Definition Capability.cc:588
zypp::operator<<
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
Definition SerialNumber.cc:52
zyppng
Definition MediaNetworkRequestExecutor.h:16
providespec.h
zypp::RWCOW_pointer::rwcowClone
D * rwcowClone(const D *rhs)
Clone the underlying object.
Definition PtrTypes.h:453