Go to the documentation of this file.
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
Date installtime() const
The items install time (false if not installed).
bool isRetracted() const
Whether this solvable is retracted (provides retractedToken).
Combining sat::Solvable and ResStatus.
bool lookupBoolAttribute(const SolvAttr &attr) const
returns the boolean attribute value for attr or false if it does not exists.
SolvableIterator(const Solvable &val_r)
A Solvable object within the sat Pool.
std::string description(const Locale &lang_r=Locale()) const
Long (multiline) text describing the solvable (opt.
OnMediaLocation lookupLocation() const
returns OnMediaLocation data: This is everything we need to download e.g.
IdType id() const
Expert backdoor.
bool isKind(const Solvable &solvable_r)
Test whether a Solvable is of a certain Kind.
ResKind kind() const
The Solvables ResKind.
Capabilities provides() const
RepoInfo repoInfo() const
The repositories RepoInfo.
What is known about a repository.
static const IdString ptfToken
Indicator provides ptf()
bool isKind(TIterator begin, TIterator end) const
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
Capabilities supplements() const
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
returns the id attribute value for attr or detail::noId if it does not exists.
LocaleSet getSupportedLocales() const
Return the supported locales.
Capabilities recommends() const
std::ostream & dumpAsXmlOn(std::ostream &str, const FileConflicts &obj)
Edition represents [epoch:]version[-release]
ByteCount downloadSize() const
Download size.
bool operator==(const Solvable &lhs, const Solvable &rhs)
bool compareByNVR(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
int compareByNVRA(const Solvable &lhs, const Solvable &rhs)
Compare according to kind, name, edition and arch.
std::string delnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for uninstall (opt.
bool sameNVRA(const Solvable &lhs, const Solvable &rhs)
Test for same name version release and arch.
Repository repository() const
The Repository this Solvable belongs to.
bool identical(const Solvable &rhs) const
Test whether two Solvables have the same content.
std::string distribution() const
The distribution string.
ZYPP_DEFINE_ID_HASHABLE(::zypp::sat::Solvable)
Capabilities enhances() const
Store and operate with byte count.
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
static const Solvable noSolvable
Represents no Solvable.
bool identical(const Solvable &lhs, const Solvable &rhs)
Test for same content.
Access to the sat-pools string space.
Common Platform Enumearation (2.3) See http://cpe.mitre.org/ for more information on the Common Platf...
ByteCount installSize() const
Installed (unpacked) size.
Solvable nextInRepo() const
Return next Solvable in Repo (or noSolvable).
std::unordered_set< Capability > CapabilitySet
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
returns the numeric attribute value for attr or 0 if it does not exists.
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Return 'value[ op edition]' for namespaced provides 'namespace(value)[ op edition]'.
bool onSystemByAuto() const
Whether this is known to be automatically installed (as dependency of a user request package).
int compare(const Arch &rhs) const
Arch comparison.
std::string asUserString() const
String representation "ident-edition.arch(repo)" or "noSolvable".
unsigned SolvableIdType
Id type to connect Solvable and sat-solvable.
int compareByNVR(const Solvable &lhs, const Solvable &rhs)
Compare according to kind, name and edition.
bool identIsAutoInstalled() const
Whether an installed solvable with the same ident is flagged as AutoInstalled.
static const SolvableIdType noSolvableId(0)
Id to denote Solvable::noSolvable.
To Solvable transform functor.
Arch arch() const
The architecture.
bool isKind() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
Edition edition() const
The edition (version-release).
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
returns the CheckSum attribute value for attr or an empty CheckSum if ir does not exist.
bool compareByN(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
CapabilitySet providesNamespace(const std::string &namespace_r) const
Return the namespaced provides 'namespace([value])[ op edition]' of this Solvable.
void getSupportedLocales(LocaleSet &locales_r) const
Capabilities operator[](Dep which_r) const
Solvable dereference() const
unsigned mediaNr() const
Media number the solvable is located on (0 if no media access required).
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
std::string asString() const
String representation "ident-edition.arch" or "noSolvable".
int IdType
Generic Id type.
Capabilities requires() const
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
Solvable nextInPool() const
Return next Solvable in Pool (or noSolvable).
Easy-to use interface to the ZYPP dependency resolver.
void assignVal(const Solvable &val_r)
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string.
Solvable(IdType id_r)
PoolImpl ctor.
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
detail::CSolvable * get() const
Expert backdoor.
CpeId cpeId() const
The solvables CpeId if available.
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.
bool isSystem() const
Return whether this Solvable belongs to the system repo.
std::string summary(const Locale &lang_r=Locale()) const
Short (singleline) text describing the solvable (opt.
std::string insnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for install (opt.
::s_Solvable CSolvable
Wrapped libsolv C data type exposed as backdoor.
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
friend class boost::iterator_core_access
bool supportsLocale(const Locale &locale_r) const
Whether this Solvable supports a specific Locale.
bool operator<(const Solvable &lhs, const Solvable &rhs)
Store and operate on date (time_t).
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
Solvable()
Default ctor creates noSolvable.
Capabilities conflicts() const
Solvable operator()(const Solvable &solv_r) const
std::unordered_set< Locale > LocaleSet
SolvableIterator(SolvableIdType id_r)
Capabilities obsoletes() const
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
Capabilities prerequires() const
Backlink to the associated PoolImpl.
bool needToAcceptLicense() const
True except for well known exceptions (i.e show license but no need to accept it).
for_use_in_switch inSwitch() const
Enumarator provided for use in switch statement.
int compareByN(const Solvable &lhs, const Solvable &rhs)
Compare according to kind and name.
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.
static int compare(const Derived &lhs, const Derived &rhs)
bool isPtf() const
Whether this solvable is a PTF (provides ptfToken).
String related utilities and Regular expression matching.
bool supportsLocales() const
Whether this Solvable claims to support locales.
std::pair< bool, CapabilitySet > matchesSolvable(const SolvAttr &attr, const sat::Solvable &solv) const
static const IdString retractedToken
Indicator provides retracted-patch-package()
Enumeration class of dependency types.
bool operator!=(const Solvable &lhs, const Solvable &rhs)
'Language[_Country]' codes.
sat::detail::SolvableIdType IdType
std::string name() const
The name (without any ResKind prefix).
Container of Capability (currently read only).
bool sameNVRA(const Solvable &rhs) const
Test for same name-version-release.arch.
IdString vendor() const
The vendor.
Helper that splits an identifier into kind and name or vice versa.
Capabilities suggests() const
IdString ident() const
The identifier.