12 #ifndef ZYPP_SAT_SOLVABLE_H 13 #define ZYPP_SAT_SOLVABLE_H 35 class OnMediaLocation;
83 explicit operator bool()
const 104 {
return isKind( resKind<TRes>() ); }
106 template<
class TIterator>
107 bool isKind( TIterator begin, TIterator end )
const 108 {
for_( it, begin, end )
if (
isKind( *it ) )
return true;
return false; }
111 std::string name()
const;
130 bool isSystem()
const;
135 bool onSystemByUser()
const;
140 bool onSystemByAuto()
const;
144 {
return identIsAutoInstalled( ident() ); }
146 static bool identIsAutoInstalled(
const IdString & ident_r );
151 bool multiversionInstall()
const;
154 bool isNeedreboot()
const;
175 bool isBlacklisted()
const;
178 bool isRetracted()
const;
184 bool isPtfMaster()
const;
187 bool isPtfPackage()
const;
191 Date buildtime()
const;
194 Date installtime()
const;
216 {
return(
get() == rhs.
get() || ( ident() == rhs.
ident() && edition() == rhs.
edition() && arch() == rhs.
arch() ) ); }
234 #if __cplusplus < 202002L 265 {
return dep( which_r ); }
269 CapabilitySet providesNamespace(
const std::string & namespace_r )
const;
278 CapabilitySet valuesOfNamespace(
const std::string & namespace_r )
const;
287 bool supportsLocales()
const;
289 bool supportsLocale(
const Locale & locale_r )
const;
291 bool supportsLocale(
const LocaleSet & locales_r )
const;
295 bool supportsRequestedLocales()
const;
300 { locales_r = getSupportedLocales(); }
308 unsigned mediaNr()
const;
337 std::string distribution()
const;
340 std::string summary(
const Locale & lang_r =
Locale() )
const;
343 std::string description(
const Locale & lang_r =
Locale() )
const;
346 std::string insnotify(
const Locale & lang_r =
Locale() )
const;
348 std::string delnotify(
const Locale & lang_r =
Locale() )
const;
351 std::string licenseToConfirm(
const Locale & lang_r =
Locale() )
const;
353 bool needToAcceptLicense()
const;
391 std::string lookupStrAttribute(
const SolvAttr &
attr )
const;
408 unsigned long long lookupNumAttribute(
const SolvAttr &
attr )
const;
410 unsigned long long lookupNumAttribute(
const SolvAttr &
attr,
unsigned long long notfound_r )
const;
416 bool lookupBoolAttribute(
const SolvAttr &
attr )
const;
463 {
return lhs.
get() == rhs.
get(); }
467 {
return lhs.
get() != rhs.
get(); }
471 {
return lhs.
get() < rhs.
get(); }
494 res = lhs.
name().compare( rhs.
name() );
530 , boost::forward_traversal_tag
587 Solvable operator()(
const ResObject_constPtr & res_r )
const;
596 #endif // ZYPP_SAT_SOLVABLE_H static const SolvableIdType noSolvableId(0)
Id to denote Solvable::noSolvable.
std::string asString(const Patch::Category &obj)
bool sameNVRA(const Solvable &rhs) const
Test for same name-version-release.arch.
bool isKind(const ResKind &val_r)
Convenient test for ResKinds.
std::string name() const
The name (without any ResKind prefix).
static const IdString ptfMasterToken
Indicator provides ptf()
A Solvable object within the sat Pool.
IdType id() const
Expert backdoor.
ResKind kind() const
The Solvables ResKind.
Container of Capability (currently read only).
SolvableIterator(const Solvable &val_r)
Enumeration class of dependency types.
bool isKind(TIterator begin, TIterator end) const
bool isKind(const Solvable &solvable_r)
Store and operate with byte count.
std::unordered_set< Locale > LocaleSet
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
bool operator==(const Solvable &lhs, const Solvable &rhs)
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
ZYPP_DEFINE_ID_HASHABLE(::zypp::sat::Solvable)
String related utilities and Regular expression matching.
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
int IdType
Generic Id type.
What is known about a repository.
Access to the sat-pools string space.
Common Platform Enumearation (2.3) See http://cpe.mitre.org/ for more information on the Common Platf...
Edition represents [epoch:]version[-release]
Iterate over valid Solvables in the pool.
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)
std::string asUserString(VendorSupportOption opt)
converts the support option to a name intended to be printed to the user.
static const Solvable noSolvable
Represents no Solvable.
int compareByNVRA(const Solvable &lhs, const Solvable &rhs)
bool identical(const Solvable &lhs, const Solvable &rhs)
bool sameNVRA(const Solvable &lhs, const Solvable &rhs)
static int compare(const Derived &lhs, const Derived &rhs)
static const IdString ptfPackageToken
Indicator provides ptf-package()
::s_Solvable CSolvable
Wrapped libsolv C data type exposed as backdoor.
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.
Edition edition() const
The edition (version-release).
Solvable dereference() const
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string...
bool identical(const SolvableType< Derived > &lhs, const Solvable &rhs)
int compareByNVR(const Solvable &lhs, const Solvable &rhs)
Arch arch() const
The architecture.
void getSupportedLocales(LocaleSet &locales_r) const
Capabilities operator[](Dep which_r) const
void initialAssignVal(const Solvable &val_r)
void assignVal(const Solvable &val_r)
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
Solvable nextInPool() const
Return next Solvable in Pool (or noSolvable).
'Language[_Country]' codes.
std::unordered_set< Capability > CapabilitySet
detail::CSolvable * get() const
Expert backdoor.
friend class boost::iterator_core_access
bool compareByNVR(const SolvableType< Derived > &lhs, const Solvable &rhs)
Solvable()
Default ctor creates noSolvable.
SolvableIterator(SolvableIdType id_r)
sat::detail::SolvableIdType IdType
Helper that splits an identifier into kind and name or vice versa.
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
int compareByN(const Solvable &lhs, const Solvable &rhs)
bool operator<(const Solvable &lhs, const Solvable &rhs)
unsigned int SolvableIdType
Id type to connect Solvable and sat-solvable.
Solvable operator()(const Solvable &solv_r) const
Combining sat::Solvable and ResStatus.
static const IdString retractedToken
Indicator provides retracted-patch-package()
std::ostream & dumpAsXmlOn(std::ostream &str, const FileConflicts &obj)
To Solvable transform functor.
Easy-to use interface to the ZYPP dependency resolver.
#define ZYPP_DEPRECATED
The ZYPP_DEPRECATED macro can be used to trigger compile-time warnings with gcc >= 3...
IdString ident() const
The identifier.
bool operator!=(const Solvable &lhs, const Solvable &rhs)