12 #ifndef ZYPP_SAT_SOLVABLE_H 13 #define ZYPP_SAT_SOLVABLE_H 35 class OnMediaLocation;
77 explicit operator bool()
const 98 {
return isKind( resKind<TRes>() ); }
100 template<
class TIterator>
101 bool isKind( TIterator begin, TIterator end )
const 102 {
for_( it, begin, end )
if (
isKind( *it ) )
return true;
return false; }
105 std::string
name()
const;
219 {
return dep( which_r ); }
417 {
return lhs.
get() == rhs.
get(); }
421 {
return lhs.
get() != rhs.
get(); }
425 {
return lhs.
get() < rhs.
get(); }
448 res = lhs.
name().compare( rhs.
name() );
483 , boost::forward_traversal_tag
546 #endif // ZYPP_SAT_SOLVABLE_H static const SolvableIdType noSolvableId(0)
Id to denote Solvable::noSolvable.
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.
IdString vendor() const
The vendor.
IdType id() const
Expert backdoor.
Capabilities provides() const
RepoInfo repoInfo() const
The repositories RepoInfo.
ResKind kind() const
The Solvables ResKind.
Container of Capability (currently read only).
SolvableIterator(const Solvable &val_r)
static const IdString ptfToken
Indicator provides ptf()
Enumeration class of dependency types.
bool isKind(TIterator begin, TIterator end) const
OnMediaLocation lookupLocation() const
returns OnMediaLocation data: This is everything we need to download e.g.
bool isKind(const Solvable &solvable_r)
LocaleSet getSupportedLocales() const
Return the supported locales.
Capabilities recommends() const
Store and operate with byte count.
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
returns the id attribute value for attr or detail::noId if it does not exists.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
bool operator==(const Solvable &lhs, const Solvable &rhs)
ZYPP_DEFINE_ID_HASHABLE(::zypp::sat::Solvable)
String related utilities and Regular expression matching.
Capabilities supplements() const
unsigned SolvableIdType
Id type to connect Solvable and sat-solvable.
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
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...
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
Edition represents [epoch:]version[-release]
ByteCount downloadSize() const
Download size.
int compare(const Arch &rhs) const
Arch comparison.
bool identical(const Solvable &rhs) const
Test whether two Solvables have the same content.
bool compareByN(const SolvableType< Derived > &lhs, const Solvable &rhs)
static const Solvable noSolvable
Represents no Solvable.
int compareByNVRA(const Solvable &lhs, const Solvable &rhs)
bool identical(const Solvable &lhs, const Solvable &rhs)
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Return 'value[ op edition]' for namespaced provides 'namespace(value)[ op edition]'.
Solvable nextInRepo() const
Return next Solvable in Repo (or noSolvable).
std::string asUserString() const
String representation "ident-edition.arch(repo)" or "noSolvable".
bool sameNVRA(const Solvable &lhs, const Solvable &rhs)
static int compare(const Derived &lhs, const Derived &rhs)
std::string distribution() const
The distribution string.
Repository repository() const
The Repository this Solvable belongs to.
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).
bool identIsAutoInstalled() const
Whether an installed solvable with the same ident is flagged as AutoInstalled.
Backlink to the associated PoolImpl.
for_use_in_switch inSwitch() const
Enumarator provided for use in switch statement.
Capabilities enhances() const
Edition edition() const
The edition (version-release).
CapabilitySet providesNamespace(const std::string &namespace_r) const
Return the namespaced provides 'namespace([value])[ op edition]' of this Solvable.
Solvable dereference() const
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string...
ByteCount installSize() const
Installed (unpacked) size.
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
returns the numeric attribute value for attr or 0 if it does not exists.
int compareByNVR(const Solvable &lhs, const Solvable &rhs)
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
returns the CheckSum attribute value for attr or an empty CheckSum if ir does not exist...
Arch arch() const
The architecture.
void getSupportedLocales(LocaleSet &locales_r) const
Capabilities operator[](Dep which_r) const
unsigned mediaNr() const
Media number the solvable is located on (0 if no media access required).
std::string asString() const
String representation "ident-edition.arch" or "noSolvable".
Solvable(IdType id_r)
PoolImpl ctor.
CpeId cpeId() const
The solvables CpeId if available.
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
void assignVal(const Solvable &val_r)
Capabilities requires() const
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
::s_Solvable CSolvable
Wrapped libsolv C data type exposed as backdoor.
bool isSystem() const
Return whether this Solvable belongs to the system repo.
Solvable nextInPool() const
Return next Solvable in Pool (or noSolvable).
'Language[_Country]' codes.
bool supportsLocale(const Locale &locale_r) const
Whether this Solvable supports a specific Locale.
detail::CSolvable * get() const
Expert backdoor.
friend class boost::iterator_core_access
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
Solvable()
Default ctor creates noSolvable.
bool supportsRequestedLocales() const
Whether this Solvable supports at least one requested locale.
bool isNeedreboot() const
Whether this solvable triggers the reboot-needed hint if installed/updated.
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
SolvableIterator(SolvableIdType id_r)
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
Helper that splits an identifier into kind and name or vice versa.
Capabilities prerequires() const
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
bool needToAcceptLicense() const
True except for well known exceptions (i.e show license but no need to accept it).
int compareByN(const Solvable &lhs, const Solvable &rhs)
bool operator<(const Solvable &lhs, const Solvable &rhs)
std::pair< bool, CapabilitySet > matchesSolvable(const SolvAttr &attr, const sat::Solvable &solv) const
Solvable operator()(const Solvable &solv_r) const
Combining sat::Solvable and ResStatus.
Capabilities obsoletes() const
static const IdString retractedToken
Indicator provides retracted-patch-package()
std::ostream & dumpAsXmlOn(std::ostream &str, const FileConflicts &obj)
sat::detail::SolvableIdType IdType
To Solvable transform functor.
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.
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).
std::unordered_set< Locale > LocaleSet
Capabilities suggests() const
IdString ident() const
The identifier.
Date installtime() const
The items install time (false if not installed).
bool operator!=(const Solvable &lhs, const Solvable &rhs)
bool lookupBoolAttribute(const SolvAttr &attr) const
returns the boolean attribute value for attr or false if it does not exists.
bool isRetracted() const
Whether this solvable is retracted (provides retractedToken).