12 #ifndef ZYPP_SAT_SOLVABLE_H
13 #define ZYPP_SAT_SOLVABLE_H
35 class OnMediaLocation;
74 explicit operator bool()
const
95 {
return isKind( resKind<TRes>() ); }
97 template<
class TIterator>
98 bool isKind( TIterator begin, TIterator end )
const
99 {
for_( it, begin, end )
if (
isKind( *it ) )
return true;
return false; }
102 std::string
name()
const;
198 {
return dep( which_r ); }
385 std::ostream &
dumpOn( std::ostream & str,
const Solvable & obj );
392 {
return lhs.
get() == rhs.
get(); }
396 {
return lhs.
get() != rhs.
get(); }
400 {
return lhs.
get() < rhs.
get(); }
423 res = lhs.
name().compare( rhs.
name() );
458 , boost::forward_traversal_tag
521 #endif // ZYPP_SAT_SOLVABLE_H
static const SolvableIdType noSolvableId(0)
Id to denote Solvable::noSolvable.
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).
int IdType
Generic Id type.
A Solvable object within the sat Pool.
Arch arch() const
The architecture.
Capabilities recommends() const
detail::CSolvable * get() const
Expert backdoor.
CapabilitySet providesNamespace(const std::string &namespace_r) const
Return the namespaced provides 'namespace([value])[ op edition]' of this Solvable.
Container of Capability (currently read only).
Date buildtime() const
The items build time.
IdString ident() const
The identifier.
Solvable dereference() const
SolvableIterator(const Solvable &val_r)
Enumeration class of dependency types.
bool isKind(const Solvable &solvable_r)
bool supportsLocale(const Locale &locale_r) const
Whether this Solvable supports a specific Locale.
Store and operate with byte count.
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
bool operator==(const Solvable &lhs, const Solvable &rhs)
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.
ZYPP_DEFINE_ID_HASHABLE(::zypp::sat::Solvable)
std::string asString() const
String representation "ident-edition.arch" or "noSolvable".
bool isSystem() const
Return whether this Solvable belongs to the system repo.
unsigned SolvableIdType
Id type to connect Solvable and sat-solvable.
bool isKind(TIterator begin, TIterator end) const
Capabilities suggests() const
ByteCount downloadSize() const
Download size.
Solvable operator()(const Solvable &solv_r) const
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.
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]
::_Solvable CSolvable
Wrapped libsolv C data type exposed as backdoor.
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Return 'value[ op edition]' for namespaced provides 'namespace(value)[ op edition]'.
bool compareByN(const SolvableType< Derived > &lhs, const Solvable &rhs)
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.
Capabilities provides() const
static const Solvable noSolvable
Represents no Solvable.
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
returns the id attribute value for attr or detail::noId if it does not exists.
int compareByNVRA(const Solvable &lhs, const Solvable &rhs)
bool identical(const Solvable &lhs, const Solvable &rhs)
int compare(const Arch &rhs) const
Arch comparison.
bool sameNVRA(const Solvable &lhs, const Solvable &rhs)
static int compare(const Derived &lhs, const Derived &rhs)
std::string name() const
The name (without any ResKind prefix).
Store and operate on date (time_t).
RepoInfo repoInfo() const
The repositories RepoInfo.
Backlink to the associated PoolImpl.
OnMediaLocation lookupLocation() const
returns OnMediaLocation data: This is everything we need to download e.g.
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.
unsigned mediaNr() const
Media number the solvable is located on (0 if no media access required).
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string...
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.
int compareByNVR(const Solvable &lhs, const Solvable &rhs)
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
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.
Solvable(IdType id_r)
PoolImpl ctor.
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
void assignVal(const Solvable &val_r)
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
Solvable nextInRepo() const
Return next Solvable in Repo (or noSolvable).
Capabilities enhances() const
'Language[_Country]' codes.
friend class boost::iterator_core_access
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.
Solvable nextInPool() const
Return next Solvable in Pool (or noSolvable).
Solvable()
Default ctor creates noSolvable.
void getSupportedLocales(LocaleSet &locales_r) const
Capabilities conflicts() const
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
SolvableIterator(SolvableIdType id_r)
Capabilities prerequires() const
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.
Helper that splits an identifier into kind and name or vice versa.
ByteCount installSize() const
Installed (unpacked) size.
int compareByN(const Solvable &lhs, const Solvable &rhs)
Capabilities operator[](Dep which_r) const
Capabilities requires() const
bool operator<(const Solvable &lhs, const Solvable &rhs)
for_use_in_switch inSwitch() const
Enumarator provided for use in switch statement.
CpeId cpeId() const
The solvables CpeId if available.
Combining sat::Solvable and ResStatus.
IdType id() const
Expert backdoor.
std::ostream & dumpAsXmlOn(std::ostream &str, const FileConflicts &obj)
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
sat::detail::SolvableIdType IdType
To Solvable transform functor.
std::string distribution() const
The distribution string.
std::unordered_set< Locale > LocaleSet
Edition edition() const
The edition (version-release).
Capabilities obsoletes() const
bool operator!=(const Solvable &lhs, const Solvable &rhs)