53 {
static zypp::shared_ptr<Impl> _nullimpl(
new Impl );
return _nullimpl; }
87 {
static zypp::shared_ptr<Impl> _nullimpl(
new Impl );
return _nullimpl; }
158 return zypp::indeterminate;
164 if ( !zypp::indeterminate (check) )
169 bool intersect =
false;
170 for (
const auto &u: l1 ) {
171 intersect = ( std::find( l2.begin (), l2.end(), u ) != l2.end() );
178 return intersects( originA, originB );
189 {
return str << obj; }
Store and operate with byte count.
Manages a data source characterized by an authoritative URL and a list of mirror URLs.
bool empty() const
Test for an empty path.
zypp::ByteCount _downloadSize
zypp::ByteCount _openSize
zypp::CheckSum _openChecksum
zypp::CheckSum _headerChecksum
static zypp::shared_ptr< Impl > nullimpl()
Offer default Impl.
zypp::Pathname _mediaSpecFile
zypp::Pathname _deltafile
zypp::ByteCount _headerSize
zypp::Pathname _destFilenameHint
bool optional() const
Whether this is an optional resource.
ProvideFileSpec & setHeaderChecksum(const zypp::CheckSum &val_r)
Set the headerChecksum.
const zypp::CheckSum & openChecksum() const
The checksum of the resource once it has been uncompressed or unpacked.
ProvideFileSpec & setCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
ProvideFileSpec & setDeltafile(const zypp::Pathname &path)
Set the deltafile.
ProvideFileSpec & setCheckExistsOnly(const bool set=true)
HeaderValueMap & customHeaders()
const zypp::Pathname & destFilenameHint() const
ProvideFileSpec & setOptional(bool val)
Set whether the resource is optional.
friend std::ostream & operator<<(std::ostream &str, const ProvideFileSpec &obj)
relates: ProvideSpec Stream output
const zypp::ByteCount & downloadSize() const
The size of the resource on the server.
zypp::OnMediaLocation asOnMediaLocation(const zypp::Pathname &path, unsigned int mediaNr) const
ProvideFileSpec & setOpenSize(const zypp::ByteCount &val_r)
Set the openSize.
ProvideFileSpec & setMirrorsAllowed(bool set=true)
Enables or disables the use of mirrors when fetching this file.
ProvideFileSpec & setChecksum(const zypp::CheckSum &val_r)
Set the checksum.
bool mirrorsAllowed() const
The requested file is allowed to be fetched via mirrors ( defaults to true ).
const zypp::ByteCount & openSize() const
The size of the resource once it has been uncompressed or unpacked.
ProvideFileSpec & setOpenChecksum(const zypp::CheckSum &val_r)
Set the openChecksum.
const zypp::Pathname & deltafile() const
The existing deltafile that can be used to reduce download size ( zchunk or metalink ).
ProvideFileSpec & setDestFilenameHint(const zypp::Pathname &filename)
zypp::RWCOW_pointer< Impl > _pimpl
Implementation class.
const zypp::CheckSum & checksum() const
The checksum of the resource on the server.
ProvideFileSpec & setDownloadSize(const zypp::ByteCount &val_r)
Set the downloadSize.
const zypp::CheckSum & headerChecksum() const
The checksum of the header prepending the resource (e.g.
ProvideFileSpec & setHeaderSize(const zypp::ByteCount &val_r)
Set the headerSize.
friend std::ostream & dumpOn(std::ostream &str, const ProvideFileSpec &obj)
relates: ProvideSpec Verbose stream output
ProvideFileSpec & addCustomHeaderValue(const std::string &key, const HeaderValueMap::Value &val)
const zypp::ByteCount & headerSize() const
The size of the header prepending the resource (e.g.
bool checkExistsOnly() const
HeaderValueMap _customHeaders
ProvideSpecBasePrivate & operator=(const ProvideSpecBasePrivate &)=delete
virtual ~ProvideSpecBasePrivate()
ProvideSpecBasePrivate(const ProvideSpecBasePrivate &)=default
ProvideSpecBasePrivate(ProvideSpecBasePrivate &&)=delete
ProvideSpecBasePrivate & operator=(ProvideSpecBasePrivate &&)=delete
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
String related utilities and Regular expression matching.
D * rwcowClone(const D *rhs)
relates: RWCOW_pointer Clone the underlying object.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
relates: Capability Detailed stream output
std::ostream & operator<<(std::ostream &str, const Capabilities &obj)
relates: Capabilities Stream output