12#ifndef ZYPP_SAT_SOLVABLE_H 
   13#define ZYPP_SAT_SOLVABLE_H 
   83      explicit operator bool()
 const 
 
  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;
 
  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;
 
  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;
 
  281      std::pair<bool, CapabilitySet> matchesSolvable ( 
const SolvAttr &attr, 
const sat::Solvable &solv ) 
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;
 
  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;
 
 
  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     
 
  561          { 
_val = val_r; base_reference() = 
_val.get(); }
 
 
 
int compare(const Arch &rhs) const
Arch comparison.
bool operator()(const zypp::Arch &lhs, const zypp::Arch &rhs) const
Default order for std::container based Arch::compare.
Store and operate with byte count.
Convenience char* constructible from std::string and char*, it maps (char*)0 to an empty string.
Container of Capability (currently read only).
Common Platform Enumearation (2.3) See http://cpe.mitre.org/ for more information on the Common Platf...
Store and operate on date (time_t).
Edition represents [epoch:]version[-release]
static int compare(const Derived &lhs, const Derived &rhs)
Access to the sat-pools string space.
'Language[_Country]' codes.
Combining sat::Solvable and ResStatus.
What is known about a repository.
Helper that splits an identifier into kind and name or vice versa.
A Solvable object within the sat Pool.
IdType id() const
Expert backdoor.
bool isKind(const Solvable &solvable_r)
Test whether a Solvable is of a certain Kind.
Capabilities supplements() const ZYPP_DEPRECATED
bool identIsAutoInstalled() const
Whether an installed solvable with the same ident is flagged as AutoInstalled.
OnMediaLocation lookupLocation() const
returns OnMediaLocation data: This is everything we need to download e.g.
bool isKind(TIterator begin, TIterator end) const
Capabilities dep_suggests() const
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
bool identical(const Solvable &lhs, const Solvable &rhs)
Test for same content.
Capabilities dep_conflicts() const
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)
Compare according to kind, name and edition.
Capabilities recommends() const ZYPP_DEPRECATED
void getSupportedLocales(LocaleSet &locales_r) const
Capabilities const ZYPP_DEPRECATED
ResKind kind() const
The Solvables ResKind.
static const Solvable noSolvable
Represents no Solvable.
Capabilities dep_supplements() const
Capabilities suggests() const ZYPP_DEPRECATED
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
returns the numeric attribute value for attr or 0 if it does not exists.
Capabilities dep_enhances() const
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
Capabilities dep_recommends() const
Solvable(const Solvable &)=default
Capabilities conflicts() const ZYPP_DEPRECATED
int compareByN(const Solvable &lhs, const Solvable &rhs)
Compare according to kind and name.
Solvable(Solvable &&) noexcept=default
Solvable nextInRepo() const
Return next Solvable in Repo (or noSolvable).
Capabilities operator[](Dep which_r) const
Edition edition() const
The edition (version-release).
bool sameNVRA(const Solvable &rhs) const
Test for same name-version-release.arch.
static const IdString ptfMasterToken
Indicator provides ptf()
Solvable()
Default ctor creates noSolvable.
Capabilities dep_obsoletes() const
LocaleSet getSupportedLocales() const
Return the supported locales.
bool operator==(const Solvable &lhs, const Solvable &rhs)
detail::CSolvable * get() const
Expert backdoor.
Arch arch() const
The architecture.
static const IdString ptfPackageToken
Indicator provides ptf-package()
Solvable nextInPool() const
Return next Solvable in Pool (or noSolvable).
bool operator!=(const Solvable &lhs, const Solvable &rhs)
static const IdString retractedToken
Indicator provides retracted-patch-package()
bool sameNVRA(const Solvable &lhs, const Solvable &rhs)
Test for same name version release and arch.
Capabilities obsoletes() const ZYPP_DEPRECATED
Capabilities dep_prerequires() const
Capabilities dep_provides() const
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
returns the id attribute value for attr or detail::noId if it does not exists.
std::string name() const
The name (without any ResKind prefix).
Capabilities dep_requires() const
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
bool operator<(const Solvable &lhs, const Solvable &rhs)
IdString ident() const
The identifier.
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
returns the CheckSum attribute value for attr or an empty CheckSum if ir does not exist.
int compareByNVRA(const Solvable &lhs, const Solvable &rhs)
Compare according to kind, name, edition and arch.
Capabilities provides() const ZYPP_DEPRECATED
Capabilities enhances() const ZYPP_DEPRECATED
Capabilities prerequires() const ZYPP_DEPRECATED
sat::detail::SolvableIdType IdType
bool isKind() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool identical(const Solvable &rhs) const
Test whether two Solvables have the same content.
void initialAssignVal(const Solvable &val_r)
SolvableIterator(SolvableIdType id_r)
Solvable dereference() const
void assignVal(const Solvable &val_r)
SolvableIterator(const Solvable &val_r)
friend class boost::iterator_core_access
String related utilities and Regular expression matching.
unsigned int SolvableIdType
Id type to connect Solvable and sat-solvable.
int IdType
Generic Id type.
::s_Solvable CSolvable
Wrapped libsolv C data type exposed as backdoor.
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...
std::ostream & operator<<(std::ostream &str, const FileConflicts &obj)
static const SolvableIdType noSolvableId(0)
Id to denote Solvable::noSolvable.
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
std::ostream & dumpAsXmlOn(std::ostream &str, const FileConflicts &obj)
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...
bool identical(const SolvableType< Derived > &lhs, const Solvable &rhs)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Easy-to use interface to the ZYPP dependency resolver.
std::unordered_set< Locale > LocaleSet
std::unordered_set< Capability > CapabilitySet
const ResKind ResTraits< Package >::kind(ResKind::package)
std::string asUserString(VendorSupportOption opt)
converts the support option to a name intended to be printed to the user.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
std::string asString(const Patch::Category &obj)
ResKind resKind()
Convenient access to well known ResKinds.
Enumeration class of dependency types.
for_use_in_switch inSwitch() const
Enumarator provided for use in switch statement.
To Solvable transform functor.
Solvable operator()(const Solvable &solv_r) const
Backlink to the associated PoolImpl.
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
#define ZYPP_DEFINE_ID_HASHABLE(C)
Define hash function for id based classes.