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>
98 template <
class RDerived>
102 template <
class RDerived>
117 #if __cplusplus < 202002L 172 template <
class Derived>
173 inline std::ostream & operator<<( std::ostream & str, const SolvableType<Derived> & obj )
174 {
return str << obj.satSolvable(); }
177 template <
class Derived>
182 template <
class LDerived,
class RDerived>
186 template <
class Derived>
190 template <
class Derived>
195 template <
class LDerived,
class RDerived>
199 template <
class Derived>
203 template <
class Derived>
208 template <
class LDerived,
class RDerived>
212 template <
class Derived>
213 inline bool operator<( const SolvableType<Derived> & lhs,
const Solvable & rhs )
214 {
return lhs.satSolvable() < rhs; }
216 template <
class Derived>
217 inline bool operator<( const Solvable & lhs, const SolvableType<Derived> & rhs )
218 {
return lhs < rhs.satSolvable(); }
221 template<
class TRes,
class Derived>
223 {
return isKind<TRes>( solvable_r.
satSolvable() ); }
226 template <
class LDerived,
class RDerived>
230 template <
class Derived>
234 template <
class Derived>
239 template <
class LDerived,
class RDerived>
243 template <
class Derived>
247 template <
class Derived>
253 template <
class LDerived,
class RDerived>
257 template <
class Derived>
261 template <
class Derived>
267 template <
class LDerived,
class RDerived>
271 template <
class Derived>
275 template <
class Derived>
280 template <
class LDerived,
class RDerived>
284 template <
class Derived>
288 template <
class Derived>
296 #endif // ZYPP_SAT_SOLVABLETYPE_H std::ostream & dumpOn(std::ostream &str, const SolvableType< Derived > &obj)
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.
bool compareByNVRA(const SolvableType< Derived > &lhs, const Solvable &rhs)
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 operator==(const Map &lhs, const Map &rhs)
bool isNeedreboot() const
std::unordered_set< Locale > LocaleSet
bool supportsLocales() const
bool isBlacklisted() const
Whether this solvable is blacklisted (retracted,ptf,...).
int compareByN(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
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
int compareByNVR(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
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]
bool sameNVRA(const SolvableType< Derived > &lhs, const Solvable &rhs)
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 compareByN(const SolvableType< Derived > &lhs, const Solvable &rhs)
bool isPtfPackage() const
Subset of isPtf (provides ptfPackageToken).
SolvableType & operator=(const SolvableType &)=default
OnMediaLocation lookupLocation() const
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]'.
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)...
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.
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
bool identical(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
CapabilitySet providesNamespace(const std::string &namespace_r) const
Return the namespaced provides 'namespace([value])[ op edition]' of this Solvable.
bool sameNVRA(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
bool operator==(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
ByteCount installSize() const
Installed (unpacked) size.
bool identical(const SolvableType< Derived > &lhs, const Solvable &rhs)
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.
Solvable::IdType id() const
bool onSystemByAuto() const
bool identical(const SolvableType< RDerived > &rhs) const
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.
bool operator!=(const SolvableType< Derived > &lhs, const Solvable &rhs)
Capabilities enhances() const
unsigned mediaNr() const
Media number the solvable is located on (0 if no media access required).
int compareByNVRA(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
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.
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
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
std::string asUserString() const
bool operator!=(const SolvableType< LDerived > &lhs, const SolvableType< RDerived > &rhs)
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
bool compareByNVR(const SolvableType< Derived > &lhs, const Solvable &rhs)
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
Capabilities prerequires() const
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 conflicts() const
Capabilities dep_supplements() const
bool isKind(const SolvableType< Derived > &solvable_r)
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).