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> 22 #include <zypp/Date.h> 53 template <
class Derived>
67 template<
class TIterator>
98 template <
class RDerived>
102 template <
class RDerived>
160 template <
class Derived>
161 inline std::ostream & operator<<( std::ostream & str, const SolvableType<Derived> & obj )
162 {
return str << obj.satSolvable(); }
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>
201 inline bool operator<( const SolvableType<Derived> & lhs,
const Solvable & rhs )
202 {
return lhs.satSolvable() < rhs; }
204 template <
class Derived>
205 inline bool operator<( const Solvable & lhs, const SolvableType<Derived> & rhs )
206 {
return lhs < rhs.satSolvable(); }
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>
284 #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).
int IdType
Generic Id type.
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
Capabilities provides() 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.
LocaleSet getSupportedLocales() const
Return the supported locales.
Capabilities recommends() const
Store and operate with byte count.
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
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.
Capabilities supplements() const
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)
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...
void operator=(SolvableType &&)
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).
OnMediaLocation lookupLocation() const
bool supportsLocale(const LocaleSet &locales_r) 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".
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
Capabilities enhances() 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)
SolvableType(const SolvableType &)
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
void operator=(const SolvableType &)
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".
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.
Capabilities requires() const
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
CapabilitySet providesNamespace(const std::string &namespace_r) const
ByteCount downloadSize() 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.
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.
std::unordered_set< Capability > CapabilitySet
bool isBlacklisted() const
std::string summary(const Locale &lang_r=Locale()) 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
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.
Capabilities conflicts() const
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
ByteCount installSize() const
bool isPtfMaster() const
Subset of isPtf (provides ptfMasterToken).
Capabilities prerequires() const
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
SolvableType(SolvableType &&)
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
bool isKind(const SolvableType< Derived > &solvable_r)
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
Capabilities obsoletes() 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
sat::detail::SolvableIdType IdType
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).
std::unordered_set< Locale > LocaleSet
Repository repository() const
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Capabilities suggests() 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).