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