11 #ifndef ZYPP_SAT_SOLVABLETYPE_H 12 #define ZYPP_SAT_SOLVABLETYPE_H 53 template <
class Derived>
59 explicit operator bool()
const {
return bool(
satSolvable()); }
67 template<
class TIterator>
89 template <
class RDerived>
93 template <
class RDerived>
153 template <
class Derived>
154 inline std::ostream & operator<<( std::ostream & str, const SolvableType<Derived> & obj )
155 {
return str << obj.satSolvable(); }
158 template <
class Derived>
163 template <
class LDerived,
class RDerived>
167 template <
class Derived>
171 template <
class Derived>
176 template <
class LDerived,
class RDerived>
180 template <
class Derived>
184 template <
class Derived>
189 template <
class LDerived,
class RDerived>
193 template <
class Derived>
194 inline bool operator<( const SolvableType<Derived> & lhs,
const Solvable & rhs )
195 {
return lhs.satSolvable() < rhs; }
197 template <
class Derived>
198 inline bool operator<( const Solvable & lhs, const SolvableType<Derived> & rhs )
199 {
return lhs < rhs.satSolvable(); }
202 template<
class TRes,
class Derived>
204 {
return isKind<TRes>( solvable_r.
satSolvable() ); }
207 template <
class LDerived,
class RDerived>
211 template <
class Derived>
215 template <
class Derived>
220 template <
class LDerived,
class RDerived>
224 template <
class Derived>
228 template <
class Derived>
234 template <
class LDerived,
class RDerived>
238 template <
class Derived>
242 template <
class Derived>
248 template <
class LDerived,
class RDerived>
252 template <
class Derived>
256 template <
class Derived>
261 template <
class LDerived,
class RDerived>
265 template <
class Derived>
269 template <
class Derived>
277 #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.
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]'.
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
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
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