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>
179 inline std::ostream & operator<<( std::ostream & str, const SolvableType<Derived> & obj )
180 {
return str << obj.satSolvable(); }
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>
219 inline bool operator<( const SolvableType<Derived> & lhs,
const Solvable & rhs )
220 {
return lhs.satSolvable() < rhs; }
222 template <
class Derived>
223 inline bool operator<( const Solvable & lhs, const SolvableType<Derived> & rhs )
224 {
return lhs < rhs.satSolvable(); }
227 template<
class TRes,
class Derived>
229 {
return isKind<TRes>( solvable_r.
satSolvable() ); }
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>
302 #endif // ZYPP_SAT_SOLVABLETYPE_H bool sameNVRA(const Solvable &rhs) const
Test for same name-version-release.arch.
std::string description(const Locale &lang_r=Locale()) const
Long (multiline) text describing the solvable (opt.
std::string name() const
The name (without any ResKind prefix).
Capabilities dep_conflicts() const
Capabilities dep_supplements() const
Capabilities dep_obsoletes() const
A Solvable object within the sat Pool.
bool sameNVRA(const Solvable &rhs) const
IdString vendor() const
The vendor.
Capabilities supplements() const
IdType id() const
Expert backdoor.
Capabilities prerequires() const
RepoInfo repoInfo() const
The repositories RepoInfo.
Capabilities provides() const
ResKind kind() const
The Solvables ResKind.
Container of Capability (currently read only).
Enumeration class of dependency types.
OnMediaLocation lookupLocation() const
returns OnMediaLocation data: This is everything we need to download e.g.
Capabilities dep_requires() const
LocaleSet getSupportedLocales() const
Return the supported locales.
Store and operate with byte count.
Capabilities dep_recommends() const
bool onSystemByUser() 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.
bool isNeedreboot() const
std::unordered_set< Locale > LocaleSet
bool supportsLocales() const
bool isBlacklisted() const
Whether this solvable is blacklisted (retracted,ptf,...).
Capabilities dep_prerequires() const
String related utilities and Regular expression matching.
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
bool sameNVRA(const SolvableType< RDerived > &rhs) const
bool operator==(const FileConflicts &lhs, const FileConflicts &rhs)
relates: FileConflicts
int IdType
Generic Id type.
What is known about a repository.
std::string delnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for uninstall (opt.
Access to the sat-pools string space.
Common Platform Enumearation (2.3) See http://cpe.mitre.org/ for more information on the Common Platf...
Capabilities dep_obsoletes() const
Edition represents [epoch:]version[-release]
Capabilities suggests() const
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
ByteCount downloadSize() const
Download size.
bool identical(const Solvable &rhs) const
Test whether two Solvables have the same content.
bool isPtfPackage() const
Subset of isPtf (provides ptfPackageToken).
SolvableType & operator=(const SolvableType &)=default
OnMediaLocation lookupLocation() const
Capability productProvides() const
Return the provided productToken or Capability::Null.
bool isKind(const Solvable &solvable_r)
relates: Solvable Test whether a Solvable is of a certain Kind.
bool supportsLocale(const LocaleSet &locales_r) const
Capabilities dep_suggests() const
bool identIsAutoInstalled() const
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Return 'value[ op edition]' for namespaced provides 'namespace(value)[ op edition]'.
int compareByNVRA(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Compare according to kind, name, edition and arch.
std::string asUserString() const
String representation "ident-edition.arch(repo)" or "noSolvable".
Capabilities dep_requires() const
bool isPtfPackage() const
std::string distribution() const
The distribution string.
Repository repository() const
The Repository this Solvable belongs to.
bool supportsRequestedLocales() const
bool onSystemByAuto() const
Whether this is known to be automatically installed (as dependency of a user request package)...
Capability patternProvides() const
Store and operate on date (time_t).
std::string distribution() const
bool identIsAutoInstalled() const
Whether an installed solvable with the same ident is flagged as AutoInstalled.
Capability productProvides() const
Capabilities operator[](Dep which_r) const
Capabilities requires() const
Edition edition() const
The edition (version-release).
std::string description(const Locale &lang_r=Locale()) const
Capabilities dep(Dep which_r) const
CapabilitySet providesNamespace(const std::string &namespace_r) const
Return the namespaced provides 'namespace([value])[ op edition]' of this Solvable.
ByteCount installSize() const
Installed (unpacked) size.
Capabilities dep_suggests() const
RepoInfo repoInfo() const
std::string lookupStrAttribute(const SolvAttr &attr, const Locale &lang_r) const
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
returns the numeric attribute value for attr or 0 if it does not exists.
Capability patternProvides() const
Return the provided patternToken or Capability::Null.
bool sameNVRA(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Test for same name version release and arch.
Solvable::IdType id() const
bool isProductPackage() const
Whether this solvable provides the productToken.
bool onSystemByAuto() const
bool isProductPackage() const
bool identical(const SolvableType< RDerived > &rhs) const
int compareByN(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Compare according to kind and name.
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
returns the CheckSum attribute value for attr or an empty CheckSum if ir does not exist...
std::string delnotify(const Locale &lang_r=Locale()) const
bool multiversionInstall() const
Capabilities dep_conflicts() const
Arch arch() const
The architecture.
Capabilities enhances() const
unsigned mediaNr() const
Media number the solvable is located on (0 if no media access required).
std::string asString() const
String representation "ident-edition.arch" or "noSolvable".
Capabilities dep_provides() const
CpeId cpeId() const
The solvables CpeId if available.
unsigned long long lookupNumAttribute(const SolvAttr &attr, unsigned long long notfound_r) const
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
bool isPatternPackage() const
CapabilitySet providesNamespace(const std::string &namespace_r) const
ByteCount downloadSize() const
Capabilities dep_recommends() const
bool isSystem() const
Return whether this Solvable belongs to the system repo.
std::string asString() const
bool isPatternPackage() const
Whether this solvable provides the patternToken.
std::string asUserString() const
LocaleSet getSupportedLocales() const
'Language[_Country]' codes.
bool supportsLocale(const Locale &locale_r) const
Whether this Solvable supports a specific Locale.
std::unordered_set< Capability > CapabilitySet
int compareByNVR(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Compare according to kind, name and edition.
bool identical(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Test for same content.
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
bool isBlacklisted() const
std::string summary(const Locale &lang_r=Locale()) const
Capabilities dep_enhances() const
bool supportsRequestedLocales() const
Whether this Solvable supports at least one requested locale.
bool isNeedreboot() const
Whether this solvable triggers the reboot-needed hint if installed/updated.
bool isKind(TIterator begin, TIterator end) const
bool supportsLocale(const Locale &locale_r) const
Capabilities dep_enhances() const
bool needToAcceptLicense() const
std::string insnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for install (opt.
std::string summary(const Locale &lang_r=Locale()) const
Short (singleline) text describing the solvable (opt.
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
ByteCount installSize() const
sat::detail::SolvableIdType IdType
bool isPtfMaster() const
Subset of isPtf (provides ptfMasterToken).
Capabilities dep_provides() const
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
relates: LocaleSupport More verbose stream output including dependencies
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
bool needToAcceptLicense() const
True except for well known exceptions (i.e show license but no need to accept it).
Capabilities dep_prerequires() const
Capabilities conflicts() const
Capabilities dep_supplements() const
bool operator!=(const FileConflicts &lhs, const FileConflicts &rhs)
relates: FileConflicts
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
bool isKind(const ResKind &kind_r) const
std::string insnotify(const Locale &lang_r=Locale()) const
bool identical(const Solvable &rhs) const
Base class for creating Solvable based types.
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
bool lookupBoolAttribute(const SolvAttr &attr) const
std::string lookupStrAttribute(const SolvAttr &attr) const
Capabilities recommends() const
Easy-to use interface to the ZYPP dependency resolver.
bool supportsLocales() const
Whether this Solvable claims to support locales.
Date buildtime() const
The items build time.
Solvable satSolvable() const
Return the corresponding sat::Solvable.
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
License or agreement to accept before installing the solvable (opt.
bool isPtf() const
Whether this solvable belongs to a PTF (provides ptfMasterToken or ptfPackageToken).
Repository repository() const
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
IdString ident() const
The identifier.
Date installtime() const
The items install time (false if not installed).
bool lookupBoolAttribute(const SolvAttr &attr) const
returns the boolean attribute value for attr or false if it does not exists.
bool isRetracted() const
Whether this solvable is retracted (provides retractedToken).