11 #ifndef ZYPP_SAT_SOLVABLETYPE_H 12 #define ZYPP_SAT_SOLVABLETYPE_H 53 template <
class Derived>
67 template<
class TIterator>
91 template <
class RDerived>
95 template <
class RDerived>
155 template <
class Derived>
156 inline std::ostream & operator<<( std::ostream & str, const SolvableType<Derived> & obj )
157 {
return str << obj.satSolvable(); }
160 template <
class Derived>
165 template <
class LDerived,
class RDerived>
169 template <
class Derived>
173 template <
class Derived>
178 template <
class LDerived,
class RDerived>
182 template <
class Derived>
186 template <
class Derived>
191 template <
class LDerived,
class RDerived>
195 template <
class Derived>
196 inline bool operator<( const SolvableType<Derived> & lhs,
const Solvable & rhs )
197 {
return lhs.satSolvable() < rhs; }
199 template <
class Derived>
200 inline bool operator<( const Solvable & lhs, const SolvableType<Derived> & rhs )
201 {
return lhs < rhs.satSolvable(); }
204 template<
class TRes,
class Derived>
206 {
return isKind<TRes>( solvable_r.
satSolvable() ); }
209 template <
class LDerived,
class RDerived>
213 template <
class Derived>
217 template <
class Derived>
222 template <
class LDerived,
class RDerived>
226 template <
class Derived>
230 template <
class Derived>
236 template <
class LDerived,
class RDerived>
240 template <
class Derived>
244 template <
class Derived>
250 template <
class LDerived,
class RDerived>
254 template <
class Derived>
258 template <
class Derived>
263 template <
class LDerived,
class RDerived>
267 template <
class Derived>
271 template <
class Derived>
279 #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 supportsLocales() const
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)
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".
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
std::string summary(const Locale &lang_r=Locale()) const
bool supportsRequestedLocales() const
Whether this Solvable supports at least one requested locale.
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
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.
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.