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