11 #ifndef ZYPP_SAT_SOLVABLETYPE_H
12 #define ZYPP_SAT_SOLVABLETYPE_H
53 template <
class Derived>
67 template<
class TIterator>
89 template <
class RDerived>
93 template <
class RDerived>
152 template <
class Derived>
153 inline std::ostream & operator<<( std::ostream & str, const SolvableType<Derived> & obj )
154 {
return str << obj.satSolvable(); }
157 template <
class Derived>
162 template <
class LDerived,
class RDerived>
166 template <
class Derived>
170 template <
class Derived>
175 template <
class LDerived,
class RDerived>
179 template <
class Derived>
183 template <
class Derived>
188 template <
class LDerived,
class RDerived>
192 template <
class Derived>
193 inline bool operator<( const SolvableType<Derived> & lhs,
const Solvable & rhs )
194 {
return lhs.satSolvable() < rhs; }
196 template <
class Derived>
197 inline bool operator<( const Solvable & lhs, const SolvableType<Derived> & rhs )
198 {
return lhs < rhs.satSolvable(); }
201 template<
class TRes,
class Derived>
203 {
return isKind<TRes>( solvable_r.
satSolvable() ); }
206 template <
class LDerived,
class RDerived>
210 template <
class Derived>
214 template <
class Derived>
219 template <
class LDerived,
class RDerived>
223 template <
class Derived>
227 template <
class Derived>
233 template <
class LDerived,
class RDerived>
237 template <
class Derived>
241 template <
class Derived>
247 template <
class LDerived,
class RDerived>
251 template <
class Derived>
255 template <
class Derived>
260 template <
class LDerived,
class RDerived>
264 template <
class Derived>
268 template <
class Derived>
276 #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.
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 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.
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 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
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
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
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
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.
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 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
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