11#ifndef ZYPP_SAT_SOLVABLETYPE_H
12#define ZYPP_SAT_SOLVABLETYPE_H
18#include <zypp-core/OnMediaLocation>
19#include <zypp/ByteCount.h>
20#include <zypp/CheckSum.h>
53 template <
class Derived>
67 template<
class TIterator>
98 template <
class RDerived>
102 template <
class RDerived>
160 template <
class Derived>
165 template <
class Derived>
170 template <
class LDerived,
class RDerived>
174 template <
class Derived>
178 template <
class Derived>
183 template <
class LDerived,
class RDerived>
187 template <
class Derived>
191 template <
class Derived>
196 template <
class LDerived,
class RDerived>
200 template <
class Derived>
204 template <
class Derived>
209 template<
class TRes,
class Derived>
211 {
return isKind<TRes>( solvable_r.
satSolvable() ); }
214 template <
class LDerived,
class RDerived>
218 template <
class Derived>
222 template <
class Derived>
227 template <
class LDerived,
class RDerived>
231 template <
class Derived>
235 template <
class Derived>
241 template <
class LDerived,
class RDerived>
245 template <
class Derived>
249 template <
class Derived>
255 template <
class LDerived,
class RDerived>
259 template <
class Derived>
263 template <
class Derived>
268 template <
class LDerived,
class RDerived>
272 template <
class Derived>
276 template <
class Derived>
Store and operate with byte count.
Container of Capability (currently read only).
Common Platform Enumearation (2.3) See http://cpe.mitre.org/ for more information on the Common Platf...
Store and operate on date (time_t).
Edition represents [epoch:]version[-release]
Access to the sat-pools string space.
'Language[_Country]' codes.
What is known about a repository.
A Solvable object within the sat Pool.
Capabilities suggests() const
IdType id() const
Expert backdoor.
bool isPtfPackage() const
Subset of isPtf (provides ptfPackageToken).
bool isNeedreboot() const
Whether this solvable triggers the reboot-needed hint if installed/updated.
bool identIsAutoInstalled() const
Whether an installed solvable with the same ident is flagged as AutoInstalled.
OnMediaLocation lookupLocation() const
returns OnMediaLocation data: This is everything we need to download e.g.
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
bool lookupBoolAttribute(const SolvAttr &attr) const
returns the boolean attribute value for attr or false if it does not exists.
IdString vendor() const
The vendor.
ByteCount installSize() const
Installed (unpacked) size.
Date buildtime() const
The items build time.
bool needToAcceptLicense() const
True except for well known exceptions (i.e show license but no need to accept it).
ResKind kind() const
The Solvables ResKind.
CapabilitySet providesNamespace(const std::string &namespace_r) const
Return the namespaced provides 'namespace([value])[ op edition]' of this Solvable.
std::string asString() const
String representation "ident-edition.arch" or "noSolvable".
std::string distribution() const
The distribution string.
unsigned mediaNr() const
Media number the solvable is located on (0 if no media access required).
bool isBlacklisted() const
Whether this solvable is blacklisted (retracted,ptf,...).
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
returns the numeric attribute value for attr or 0 if it does not exists.
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
CpeId cpeId() const
The solvables CpeId if available.
Date installtime() const
The items install time (false if not installed).
Edition edition() const
The edition (version-release).
bool sameNVRA(const Solvable &rhs) const
Test for same name-version-release.arch.
Capabilities prerequires() const
bool isPtfMaster() const
Subset of isPtf (provides ptfMasterToken).
Capabilities enhances() const
LocaleSet getSupportedLocales() const
Return the supported locales.
bool supportsRequestedLocales() const
Whether this Solvable supports at least one requested locale.
Arch arch() const
The architecture.
bool isSystem() const
Return whether this Solvable belongs to the system repo.
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
License or agreement to accept before installing the solvable (opt.
bool supportsLocales() const
Whether this Solvable claims to support locales.
Capabilities provides() const
std::string asUserString() const
String representation "ident-edition.arch(repo)" or "noSolvable".
std::string summary(const Locale &lang_r=Locale()) const
Short (singleline) text describing the solvable (opt.
Capabilities conflicts() const
Capabilities obsoletes() const
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
returns the id attribute value for attr or detail::noId if it does not exists.
std::string name() const
The name (without any ResKind prefix).
sat::detail::SolvableIdType IdType
bool supportsLocale(const Locale &locale_r) const
Whether this Solvable supports a specific Locale.
Capabilities supplements() const
ByteCount downloadSize() const
Download size.
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
bool onSystemByAuto() const
Whether this is known to be automatically installed (as dependency of a user request package).
std::string delnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for uninstall (opt.
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Return 'value[ op edition]' for namespaced provides 'namespace(value)[ op edition]'.
IdString ident() const
The identifier.
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
returns the CheckSum attribute value for attr or an empty CheckSum if ir does not exist.
std::string description(const Locale &lang_r=Locale()) const
Long (multiline) text describing the solvable (opt.
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
Capabilities recommends() const
RepoInfo repoInfo() const
The repositories RepoInfo.
Repository repository() const
The Repository this Solvable belongs to.
bool isPtf() const
Whether this solvable belongs to a PTF (provides ptfMasterToken or ptfPackageToken).
bool isRetracted() const
Whether this solvable is retracted (provides retractedToken).
std::string insnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for install (opt.
bool identical(const Solvable &rhs) const
Test whether two Solvables have the same content.
String related utilities and Regular expression matching.
int IdType
Generic Id type.
bool compareByNVR(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool operator!=(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool compareByNVRA(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
bool operator<(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool compareByN(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool sameNVRA(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool identical(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool operator==(const Map &lhs, const Map &rhs)
Easy-to use interface to the ZYPP dependency resolver.
std::unordered_set< Capability > CapabilitySet
std::unordered_set< Locale > LocaleSet
Enumeration class of dependency types.
Base class for creating Solvable based types.
Capabilities suggests() const
bool operator==(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Equal.
std::string summary(const Locale &lang_r=Locale()) const
OnMediaLocation lookupLocation() const
void operator=(SolvableType &&)
Capabilities obsoletes() const
Capabilities provides() const
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
bool identical(const Solvable &rhs) const
Capabilities dep(Dep which_r) const
Solvable::IdType id() const
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
bool onSystemByUser() const
bool isKind(const ResKind &kind_r) const
std::ostream & operator<<(std::ostream &str, const SolvableType< Derived > &obj)
Stream output.
bool supportsLocale(const Locale &locale_r) const
Capabilities supplements() const
bool isBlacklisted() const
std::string asUserString() const
int compareByN(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Compare according to kind and name.
bool identical(const SolvableType< RDerived > &rhs) const
std::string distribution() const
bool lookupBoolAttribute(const SolvAttr &attr) const
bool sameNVRA(const SolvableType< RDerived > &rhs) const
SolvableType(const SolvableType &)
bool operator!=(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
NotEqual.
bool onSystemByAuto() const
bool isKind(TIterator begin, TIterator end) const
Capabilities prerequires() const
SolvableType(SolvableType &&)
bool needToAcceptLicense() const
bool supportsRequestedLocales() const
std::string lookupStrAttribute(const SolvAttr &attr) const
RepoInfo repoInfo() const
int compareByNVRA(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Compare according to kind, name, edition and arch.
int compareByNVR(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Compare according to kind, name and edition.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
std::string delnotify(const Locale &lang_r=Locale()) const
std::string asString() const
Capabilities conflicts() const
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
bool sameNVRA(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Test for same name version release and arch.
Capabilities enhances() const
bool isKind(const SolvableType< Derived > &solvable_r)
Test whether the Solvable is of a certain ResKind.
std::string lookupStrAttribute(const SolvAttr &attr, const Locale &lang_r) const
LocaleSet getSupportedLocales() const
ByteCount downloadSize() const
ByteCount installSize() const
bool isNeedreboot() const
bool supportsLocales() const
bool supportsLocale(const LocaleSet &locales_r) const
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
Repository repository() const
bool sameNVRA(const Solvable &rhs) const
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
unsigned long long lookupNumAttribute(const SolvAttr &attr, unsigned long long notfound_r) const
std::string insnotify(const Locale &lang_r=Locale()) const
CapabilitySet providesNamespace(const std::string &namespace_r) const
bool identical(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Test for same content.
Capabilities recommends() const
bool multiversionInstall() const
bool isPtfPackage() const
void operator=(const SolvableType &)
std::ostream & dumpOn(std::ostream &str, const SolvableType< Derived > &obj)
More verbose stream output including dependencies.
bool operator<(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
Less.
Capabilities operator[](Dep which_r) const
bool identIsAutoInstalled() const
std::string description(const Locale &lang_r=Locale()) const