11#ifndef ZYPP_SAT_SOLVABLETYPE_H
12#define ZYPP_SAT_SOLVABLETYPE_H
18#include <zypp-core/OnMediaLocation>
53 template <
class Derived>
67 template<
class TIterator>
103 template <
class RDerived>
107 template <
class RDerived>
122#if __cplusplus < 202002L
178 template <
class Derived>
183 template <
class Derived>
188 template <
class LDerived,
class RDerived>
192 template <
class Derived>
196 template <
class Derived>
201 template <
class LDerived,
class RDerived>
205 template <
class Derived>
209 template <
class Derived>
214 template <
class LDerived,
class RDerived>
218 template <
class Derived>
222 template <
class Derived>
227 template<
class TRes,
class Derived>
232 template <
class LDerived,
class RDerived>
236 template <
class Derived>
240 template <
class Derived>
245 template <
class LDerived,
class RDerived>
249 template <
class Derived>
253 template <
class Derived>
259 template <
class LDerived,
class RDerived>
263 template <
class Derived>
267 template <
class Derived>
273 template <
class LDerived,
class RDerived>
277 template <
class Derived>
281 template <
class Derived>
286 template <
class LDerived,
class RDerived>
290 template <
class Derived>
294 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.
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.
bool isProductPackage() const
Whether this solvable provides the productToken.
Capabilities dep_suggests() const
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
Capabilities dep_conflicts() const
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.
Capabilities dep_supplements() const
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.
Capabilities dep_enhances() const
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
Capabilities dep_recommends() const
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
CpeId cpeId() const
The solvables CpeId if available.
bool isPatternPackage() const
Whether this solvable provides the patternToken.
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.
bool isPtfMaster() const
Subset of isPtf (provides ptfMasterToken).
Capabilities dep_obsoletes() 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.
std::string asUserString() const
String representation "ident-edition.arch(repo)" or "noSolvable".
Capability patternProvides() const
Return the provided patternToken or Capability::Null.
std::string summary(const Locale &lang_r=Locale()) const
Short (singleline) text describing the solvable (opt.
Capabilities dep_prerequires() const
Capabilities dep_provides() const
Capability productProvides() const
Return the provided productToken or Capability::Null.
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).
bool supportsLocale(const Locale &locale_r) const
Whether this Solvable supports a specific Locale.
Capabilities dep_requires() 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.
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).
sat::detail::SolvableIdType IdType
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.
int compareByN(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Compare according to kind and name.
bool identical(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Test for same content.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
relates: FileConflicts Stream output
bool operator!=(const FileConflicts &lhs, const FileConflicts &rhs)
relates: FileConflicts
bool isKind(const Solvable &solvable_r)
relates: Solvable Test whether a Solvable is of a certain Kind.
bool operator<(const LocaleSupport &lhs, const LocaleSupport &rhs)
relates: LocaleSupport
bool operator==(const FileConflicts &lhs, const FileConflicts &rhs)
relates: FileConflicts
bool sameNVRA(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Test for same name version release and arch.
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
relates: LocaleSupport More verbose stream output including dependencies
int compareByNVRA(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Compare according to kind, name, edition and arch.
int compareByNVR(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Compare according to kind, name and edition.
Easy-to use interface to the ZYPP dependency resolver.
std::unordered_set< Locale > LocaleSet
std::unordered_set< Capability > CapabilitySet
Enumeration class of dependency types.
Base class for creating Solvable based types.
Capabilities suggests() const
Capabilities dep_recommends() const
std::string summary(const Locale &lang_r=Locale()) const
bool isPatternPackage() const
OnMediaLocation lookupLocation() const
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
Capabilities dep_conflicts() const
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
bool onSystemByUser() const
bool isKind(const ResKind &kind_r) const
Capabilities dep_obsoletes() const
bool supportsLocale(const Locale &locale_r) const
Capabilities supplements() const
bool isBlacklisted() const
std::string asUserString() const
bool identical(const SolvableType< RDerived > &rhs) const
std::string distribution() const
Capabilities dep_enhances() const
bool lookupBoolAttribute(const SolvAttr &attr) const
bool sameNVRA(const SolvableType< RDerived > &rhs) const
Capabilities dep_provides() const
bool onSystemByAuto() const
SolvableType(SolvableType &&) noexcept=default
Capabilities dep_requires() const
bool isKind(TIterator begin, TIterator end) const
Capabilities prerequires() const
bool needToAcceptLicense() const
bool isProductPackage() const
bool supportsRequestedLocales() const
std::string lookupStrAttribute(const SolvAttr &attr) const
RepoInfo repoInfo() const
Capability patternProvides() const
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
Capabilities dep_suggests() const
Capabilities enhances() const
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
SolvableType & operator=(const SolvableType &)=default
std::string insnotify(const Locale &lang_r=Locale()) const
Capabilities dep_prerequires() const
CapabilitySet providesNamespace(const std::string &namespace_r) const
Capability productProvides() const
Capabilities dep_supplements() const
SolvableType(const SolvableType &)=default
Capabilities recommends() const
bool multiversionInstall() const
bool isPtfPackage() const
Capabilities operator[](Dep which_r) const
bool identIsAutoInstalled() const
std::string description(const Locale &lang_r=Locale()) const