11 #ifndef ZYPP_SAT_SOLVABLETYPE_H
12 #define ZYPP_SAT_SOLVABLETYPE_H
53 template <
class Derived>
67 template<
class TIterator>
97 template <
class RDerived>
101 template <
class RDerived>
161 template <
class Derived>
162 inline std::ostream & operator<<( std::ostream & str, const SolvableType<Derived> & obj )
163 {
return str << obj.satSolvable(); }
166 template <
class Derived>
171 template <
class LDerived,
class RDerived>
175 template <
class Derived>
179 template <
class Derived>
184 template <
class LDerived,
class RDerived>
188 template <
class Derived>
192 template <
class Derived>
197 template <
class LDerived,
class RDerived>
201 template <
class Derived>
202 inline bool operator<( const SolvableType<Derived> & lhs,
const Solvable & rhs )
203 {
return lhs.satSolvable() < rhs; }
205 template <
class Derived>
206 inline bool operator<( const Solvable & lhs, const SolvableType<Derived> & rhs )
207 {
return lhs < rhs.satSolvable(); }
210 template<
class TRes,
class Derived>
212 {
return isKind<TRes>( solvable_r.
satSolvable() ); }
215 template <
class LDerived,
class RDerived>
219 template <
class Derived>
223 template <
class Derived>
228 template <
class LDerived,
class RDerived>
232 template <
class Derived>
236 template <
class Derived>
242 template <
class LDerived,
class RDerived>
246 template <
class Derived>
250 template <
class Derived>
256 template <
class LDerived,
class RDerived>
260 template <
class Derived>
264 template <
class Derived>
269 template <
class LDerived,
class RDerived>
273 template <
class Derived>
277 template <
class Derived>
285 #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)
bool isPtfPackage() const
Subset of isPtf (provides ptfPackageToken).
bool isPtf() const
Whether this solvable belongs to a PTF (provides ptfMasterToken or ptfPackageToken).
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 compareByNVRA(const SolvableType< Derived > &lhs, const Solvable &rhs)
bool isBlacklisted() 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 operator==(const Map &lhs, const Map &rhs)
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.
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 SolvableType< Derived > &lhs, const Solvable &rhs)
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.
bool compareByN(const SolvableType< Derived > &lhs, const Solvable &rhs)
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 identical(const SolvableType< Derived > &lhs, const Solvable &rhs)
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
bool isPtfMaster() const
Subset of isPtf (provides ptfMasterToken).
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 operator!=(const SolvableType< Derived > &lhs, const Solvable &rhs)
bool identical(const Solvable &rhs) const
Test whether two Solvables have the same content.
std::string distribution() const
bool isBlacklisted() const
Whether this solvable is blacklisted (retracted,ptf,...).
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
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
ByteCount downloadSize() const
bool isPtfPackage() 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.
bool compareByNVR(const SolvableType< Derived > &lhs, const Solvable &rhs)
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 isRetracted() const
Whether this solvable is retracted (provides retractedToken).
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
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