libzypp  17.38.7
SolvableType.h
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
11 #ifndef ZYPP_SAT_SOLVABLETYPE_H
12 #define ZYPP_SAT_SOLVABLETYPE_H
13 
14 #include <iosfwd>
15 
16 #include <zypp/sat/Solvable.h>
17 #include <zypp/Repository.h>
18 #include <zypp-core/OnMediaLocation>
19 #include <zypp-core/ByteCount.h>
20 #include <zypp/CheckSum.h>
21 #include <zypp/CpeId.h>
22 #include <zypp-core/Date.h>
23 
25 namespace zypp
26 {
28  namespace sat
29  {
53  template <class Derived>
54  struct SolvableType
55  {
57  Solvable satSolvable() const { return Solvable(static_cast<const Derived&>(*this)); }
58 
59  explicit operator bool() const { return bool(satSolvable()); }
60 
61  IdString ident() const { return satSolvable().ident(); }
62 
63  ResKind kind() const { return satSolvable().kind(); }
64  bool isKind( const ResKind & kind_r ) const { return satSolvable().isKind( kind_r ); }
65  template<class TRes>
66  bool isKind() const { return satSolvable().template isKind<TRes>(); }
67  template<class TIterator>
68  bool isKind( TIterator begin, TIterator end ) const { return satSolvable().isKind( begin, end ); }
69 
70  std::string name() const { return satSolvable().name(); }
71  Edition edition() const { return satSolvable().edition(); }
72  Arch arch() const { return satSolvable().arch(); }
73  IdString vendor() const { return satSolvable().vendor(); }
74 
75  Repository repository() const { return satSolvable().repository(); }
76  RepoInfo repoInfo() const { return satSolvable().repoInfo(); }
77 
78  bool isSystem() const { return satSolvable().isSystem(); }
79  bool onSystemByUser() const { return satSolvable().onSystemByUser(); }
80  bool onSystemByAuto() const { return satSolvable().onSystemByAuto(); }
83  bool isNeedreboot() const { return satSolvable().isNeedreboot(); }
84 
86  bool isPatternPackage() const { return satSolvable().isPatternPackage(); }
88  bool isProductPackage() const { return satSolvable().isProductPackage(); }
89 
90  bool isBlacklisted() const { return satSolvable().isBlacklisted(); }
91  bool isRetracted() const { return satSolvable().isRetracted(); }
92  bool isPtf() const { return satSolvable().isPtf(); }
93  bool isPtfMaster() const { return satSolvable().isPtfMaster(); }
94  bool isPtfPackage() const { return satSolvable().isPtfPackage(); }
95 
96  Date buildtime() const { return satSolvable().buildtime(); }
97  Date installtime() const { return satSolvable().installtime(); }
98 
99  std::string asString() const { return satSolvable().asString(); }
100  std::string asUserString() const { return satSolvable().asUserString(); }
101 
102  bool identical( const Solvable & rhs ) const { return satSolvable().identical( rhs ); }
103  template <class RDerived>
104  bool identical( const SolvableType<RDerived> & rhs ) const { return satSolvable().identical( rhs.satSolvable() ); }
105 
106  bool sameNVRA( const Solvable &rhs ) const { return satSolvable().sameNVRA( rhs ); }
107  template <class RDerived>
108  bool sameNVRA( const SolvableType<RDerived> & rhs ) const { return satSolvable().sameNVRA( rhs.satSolvable() ); }
109 
119  Capabilities dep( Dep which_r ) const { return satSolvable().dep(which_r); }
120  Capabilities operator[]( Dep which_r ) const { return satSolvable()[which_r]; }
121 
122 #if __cplusplus < 202002L
132 #endif
133 
134 
135  CapabilitySet providesNamespace( const std::string & namespace_r ) const { return satSolvable().providesNamespace( namespace_r ); }
136  CapabilitySet valuesOfNamespace( const std::string & namespace_r ) const { return satSolvable().valuesOfNamespace( namespace_r ); }
137 
138  bool supportsLocales() const { return satSolvable().supportsLocales(); }
139  bool supportsLocale( const Locale & locale_r ) const { return satSolvable().supportsLocale( locale_r ); }
140  bool supportsLocale( const LocaleSet & locales_r ) const { return satSolvable().supportsLocale( locales_r ); }
143 
144  CpeId cpeId() const { return satSolvable().cpeId(); }
145  unsigned mediaNr() const { return satSolvable().mediaNr(); }
148  std::string distribution() const { return satSolvable().distribution(); }
149 
150  std::string summary( const Locale & lang_r = Locale() ) const { return satSolvable().summary( lang_r ); }
151  std::string description( const Locale & lang_r = Locale() ) const { return satSolvable().description( lang_r ); }
152  std::string insnotify( const Locale & lang_r = Locale() ) const { return satSolvable().insnotify( lang_r ); }
153  std::string delnotify( const Locale & lang_r = Locale() ) const { return satSolvable().delnotify( lang_r ); }
154  std::string licenseToConfirm( const Locale & lang_r = Locale() ) const { return satSolvable().licenseToConfirm( lang_r ); }
156 
157  public:
158  std::string lookupStrAttribute( const SolvAttr & attr ) const { return satSolvable().lookupStrAttribute( attr ); }
159  std::string lookupStrAttribute( const SolvAttr & attr, const Locale & lang_r ) const { return satSolvable().lookupStrAttribute( attr, lang_r ); }
160  bool lookupBoolAttribute( const SolvAttr & attr ) const { return satSolvable().lookupBoolAttribute( attr ); }
162  unsigned long long lookupNumAttribute( const SolvAttr & attr ) const { return satSolvable().lookupNumAttribute( attr ); }
163  unsigned long long lookupNumAttribute( const SolvAttr & attr, unsigned long long notfound_r ) const { return satSolvable().lookupNumAttribute( attr, notfound_r ); }
166  Solvable::IdType id() const { return satSolvable().id(); }
167 
168  protected:
170  SolvableType( const SolvableType & ) = default;
171  SolvableType &operator=( const SolvableType & ) = default;
172  SolvableType( SolvableType && ) noexcept = default;
173  SolvableType &operator=( SolvableType && ) noexcept = default;
175  };
176 
178  template <class Derived>
179  inline std::ostream & operator<<( std::ostream & str, const SolvableType<Derived> & obj )
180  { return str << obj.satSolvable(); }
181 
183  template <class Derived>
184  inline std::ostream & dumpOn( std::ostream & str, const SolvableType<Derived> & obj )
185  { return dumpOn( str, obj.satSolvable() ); }
186 
188  template <class LDerived, class RDerived>
189  inline bool operator==( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
190  { return lhs.satSolvable() == rhs.satSolvable(); }
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(); }
199 
201  template <class LDerived, class RDerived>
202  inline bool operator!=( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
203  { return lhs.satSolvable() != rhs.satSolvable(); }
205  template <class Derived>
206  inline bool operator!=( const SolvableType<Derived> & lhs, const Solvable & rhs )
207  { return lhs.satSolvable() != rhs; }
209  template <class Derived>
210  inline bool operator!=( const Solvable & lhs, const SolvableType<Derived> & rhs )
211  { return lhs != rhs.satSolvable(); }
212 
214  template <class LDerived, class RDerived>
215  inline bool operator<( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
216  { return lhs.satSolvable() < rhs.satSolvable(); }
218  template <class Derived>
219  inline bool operator<( const SolvableType<Derived> & lhs, const Solvable & rhs )
220  { return lhs.satSolvable() < rhs; }
222  template <class Derived>
223  inline bool operator<( const Solvable & lhs, const SolvableType<Derived> & rhs )
224  { return lhs < rhs.satSolvable(); }
225 
227  template<class TRes, class Derived>
228  inline bool isKind( const SolvableType<Derived> & solvable_r )
229  { return isKind<TRes>( solvable_r.satSolvable() ); }
230 
232  template <class LDerived, class RDerived>
233  inline bool identical( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
234  { return identical( lhs.satSolvable(), rhs.satSolvable() ); }
236  template <class Derived>
237  inline bool identical( const SolvableType<Derived> & lhs, const Solvable & rhs )
238  { return identical( lhs.satSolvable(), rhs ); }
240  template <class Derived>
241  inline bool identical( const Solvable & lhs, const SolvableType<Derived> & rhs )
242  { return identical( lhs, rhs.satSolvable() ); }
243 
245  template <class LDerived, class RDerived>
246  inline bool sameNVRA( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
247  { return sameNVRA( lhs.satSolvable(), rhs.satSolvable() ); }
249  template <class Derived>
250  inline bool sameNVRA( const SolvableType<Derived> & lhs, const Solvable & rhs )
251  { return sameNVRA( lhs.satSolvable(), rhs ); }
253  template <class Derived>
254  inline bool sameNVRA( const Solvable & lhs, const SolvableType<Derived> & rhs )
255  { return sameNVRA( lhs, rhs.satSolvable() ); }
256 
257 
259  template <class LDerived, class RDerived>
260  inline int compareByN( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
261  { return compareByN( lhs.satSolvable(), rhs.satSolvable() ); }
263  template <class Derived>
264  inline bool compareByN( const SolvableType<Derived> & lhs, const Solvable & rhs )
265  { return compareByN( lhs.satSolvable(), rhs ); }
267  template <class Derived>
268  inline bool compareByN( const Solvable & lhs, const SolvableType<Derived> & rhs )
269  { return compareByN( lhs, rhs.satSolvable() ); }
270 
271 
273  template <class LDerived, class RDerived>
274  inline int compareByNVR( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
275  { return compareByNVR( lhs.satSolvable(), rhs.satSolvable() ); }
277  template <class Derived>
278  inline bool compareByNVR( const SolvableType<Derived> & lhs, const Solvable & rhs )
279  { return compareByNVR( lhs.satSolvable(), rhs ); }
281  template <class Derived>
282  inline bool compareByNVR( const Solvable & lhs, const SolvableType<Derived> & rhs )
283  { return compareByNVR( lhs, rhs.satSolvable() ); }
284 
286  template <class LDerived, class RDerived>
287  inline int compareByNVRA( const SolvableType<LDerived> & lhs, const SolvableType<RDerived> & rhs )
288  { return compareByNVRA( lhs.satSolvable(), rhs.satSolvable() ); }
290  template <class Derived>
291  inline bool compareByNVRA( const SolvableType<Derived> & lhs, const Solvable & rhs )
292  { return compareByNVRA( lhs.satSolvable(), rhs ); }
294  template <class Derived>
295  inline bool compareByNVRA( const Solvable & lhs, const SolvableType<Derived> & rhs )
296  { return compareByNVRA( lhs, rhs.satSolvable() ); }
297 
298  } // namespace sat
300 } // namespace zypp
302 #endif // ZYPP_SAT_SOLVABLETYPE_H
bool sameNVRA(const Solvable &rhs) const
Test for same name-version-release.arch.
Definition: Solvable.h:234
std::string description(const Locale &lang_r=Locale()) const
Long (multiline) text describing the solvable (opt.
Definition: Solvable.cc:746
std::string name() const
The name (without any ResKind prefix).
Definition: Solvable.cc:333
Date installtime() const
Definition: SolvableType.h:97
Capabilities dep_conflicts() const
Definition: SolvableType.h:112
Capabilities dep_supplements() const
Definition: Solvable.cc:523
Capabilities dep_obsoletes() const
Definition: Solvable.cc:503
A Solvable object within the sat Pool.
Definition: Solvable.h:53
bool sameNVRA(const Solvable &rhs) const
Definition: SolvableType.h:106
IdString vendor() const
The vendor.
Definition: Solvable.cc:361
Capabilities supplements() const
Definition: SolvableType.h:130
IdType id() const
Expert backdoor.
Definition: Solvable.h:464
Capabilities prerequires() const
Definition: SolvableType.h:131
RepoInfo repoInfo() const
The repositories RepoInfo.
Definition: Solvable.cc:373
Capabilities provides() const
Definition: SolvableType.h:123
ResKind kind() const
The Solvables ResKind.
Definition: Solvable.cc:279
Container of Capability (currently read only).
Definition: Capabilities.h:34
Describes a resource file located on a medium.
Enumeration class of dependency types.
Definition: Dep.h:30
OnMediaLocation lookupLocation() const
returns OnMediaLocation data: This is everything we need to download e.g.
Definition: Solvable.cc:228
Capabilities dep_requires() const
Definition: Solvable.cc:493
Architecture.
Definition: Arch.h:36
LocaleSet getSupportedLocales() const
Return the supported locales.
Definition: Solvable.cc:696
Store and operate with byte count.
Definition: ByteCount.h:31
Capabilities dep_recommends() const
Definition: Solvable.cc:508
bool onSystemByUser() const
Definition: SolvableType.h:79
Capabilities obsoletes() const
Definition: SolvableType.h:126
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
returns the id attribute value for attr or detail::noId if it does not exists.
Definition: Solvable.cc:180
bool isNeedreboot() const
Definition: SolvableType.h:83
std::unordered_set< Locale > LocaleSet
Definition: Locale.h:29
bool supportsLocales() const
Definition: SolvableType.h:138
sat::SolvAttr attr
Definition: PoolQuery.cc:312
bool isBlacklisted() const
Whether this solvable is blacklisted (retracted,ptf,...).
Definition: Solvable.cc:405
Capabilities dep_prerequires() const
Definition: Solvable.cc:528
String related utilities and Regular expression matching.
bool isKind(const ResKind &kind_r) const
Test whether a Solvable is of a certain ResKind.
Definition: Solvable.cc:306
bool sameNVRA(const SolvableType< RDerived > &rhs) const
Definition: SolvableType.h:108
bool operator==(const FileConflicts &lhs, const FileConflicts &rhs)
relates: FileConflicts
Definition: FileConflicts.h:85
int IdType
Generic Id type.
Definition: PoolDefines.h:42
What is known about a repository.
Definition: RepoInfo.h:71
std::string delnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for uninstall (opt.
Definition: Solvable.cc:758
Access to the sat-pools string space.
Definition: IdString.h:51
Common Platform Enumearation (2.3) See http://cpe.mitre.org/ for more information on the Common Platf...
Definition: CpeId.h:32
Capabilities dep_obsoletes() const
Definition: SolvableType.h:113
Edition represents [epoch:]version[-release]
Definition: Edition.h:59
Edition edition() const
Definition: SolvableType.h:71
Capabilities suggests() const
Definition: SolvableType.h:128
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
Definition: SolvableType.h:164
ByteCount downloadSize() const
Download size.
Definition: Solvable.cc:728
bool identical(const Solvable &rhs) const
Test whether two Solvables have the same content.
Definition: Solvable.cc:471
IdString ident() const
Definition: SolvableType.h:61
bool isPtfPackage() const
Subset of isPtf (provides ptfPackageToken).
Definition: Solvable.cc:427
SolvableType & operator=(const SolvableType &)=default
OnMediaLocation lookupLocation() const
Definition: SolvableType.h:165
Capability productProvides() const
Return the provided productToken or Capability::Null.
Definition: Solvable.h:168
bool isKind(const Solvable &solvable_r)
relates: Solvable Test whether a Solvable is of a certain Kind.
Definition: Solvable.h:494
bool supportsLocale(const LocaleSet &locales_r) const
Definition: SolvableType.h:140
Capabilities dep_suggests() const
Definition: Solvable.cc:513
bool identIsAutoInstalled() const
Definition: SolvableType.h:81
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Return &#39;value[ op edition]&#39; for namespaced provides &#39;namespace(value)[ op edition]&#39;.
Definition: Solvable.cc:568
int compareByNVRA(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Compare according to kind, name, edition and arch.
Definition: Solvable.h:528
std::string asUserString() const
String representation "ident-edition.arch(repo)" or "noSolvable".
Definition: Solvable.cc:461
Capabilities dep_requires() const
Definition: SolvableType.h:111
bool isPtfPackage() const
Definition: SolvableType.h:94
std::string name() const
Definition: SolvableType.h:70
std::string distribution() const
The distribution string.
Definition: Solvable.cc:734
Repository repository() const
The Repository this Solvable belongs to.
Definition: Solvable.cc:367
bool supportsRequestedLocales() const
Definition: SolvableType.h:141
bool onSystemByAuto() const
Whether this is known to be automatically installed (as dependency of a user request package)...
Definition: Solvable.cc:388
Capability patternProvides() const
Definition: SolvableType.h:85
Store and operate on date (time_t).
Definition: Date.h:32
std::string distribution() const
Definition: SolvableType.h:148
bool identIsAutoInstalled() const
Whether an installed solvable with the same ident is flagged as AutoInstalled.
Definition: Solvable.h:146
Solvable attribute keys.
Definition: SolvAttr.h:40
Capability productProvides() const
Definition: SolvableType.h:87
Capabilities operator[](Dep which_r) const
Definition: SolvableType.h:120
bool isRetracted() const
Definition: SolvableType.h:91
Capabilities requires() const
Definition: SolvableType.h:124
Edition edition() const
The edition (version-release).
Definition: Solvable.cc:341
std::string description(const Locale &lang_r=Locale()) const
Definition: SolvableType.h:151
Capabilities dep(Dep which_r) const
Definition: SolvableType.h:119
CapabilitySet providesNamespace(const std::string &namespace_r) const
Return the namespaced provides &#39;namespace([value])[ op edition]&#39; of this Solvable.
Definition: Solvable.cc:554
ByteCount installSize() const
Installed (unpacked) size.
Definition: Solvable.cc:722
Capabilities dep_suggests() const
Definition: SolvableType.h:115
RepoInfo repoInfo() const
Definition: SolvableType.h:76
std::string lookupStrAttribute(const SolvAttr &attr, const Locale &lang_r) const
Definition: SolvableType.h:159
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
returns the numeric attribute value for attr or 0 if it does not exists.
Definition: Solvable.cc:162
Capability patternProvides() const
Return the provided patternToken or Capability::Null.
Definition: Solvable.h:160
bool sameNVRA(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Test for same name version release and arch.
Definition: Solvable.h:502
Solvable::IdType id() const
Definition: SolvableType.h:166
bool isProductPackage() const
Whether this solvable provides the productToken.
Definition: Solvable.h:172
bool onSystemByAuto() const
Definition: SolvableType.h:80
bool isProductPackage() const
Definition: SolvableType.h:88
bool identical(const SolvableType< RDerived > &rhs) const
Definition: SolvableType.h:104
int compareByN(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Compare according to kind and name.
Definition: Solvable.h:507
unsigned mediaNr() const
Definition: SolvableType.h:145
CheckSum lookupCheckSumAttribute(const SolvAttr &attr) const
returns the CheckSum attribute value for attr or an empty CheckSum if ir does not exist...
Definition: Solvable.cc:186
std::string delnotify(const Locale &lang_r=Locale()) const
Definition: SolvableType.h:153
bool multiversionInstall() const
Definition: SolvableType.h:82
Capabilities dep_conflicts() const
Definition: Solvable.cc:498
bool isPtfMaster() const
Definition: SolvableType.h:93
Arch arch() const
The architecture.
Definition: Solvable.cc:347
Capabilities enhances() const
Definition: SolvableType.h:129
unsigned mediaNr() const
Media number the solvable is located on (0 if no media access required).
Definition: Solvable.cc:709
std::string asString() const
String representation "ident-edition.arch" or "noSolvable".
Definition: Solvable.cc:452
Capabilities dep_provides() const
Definition: Solvable.cc:488
CpeId cpeId() const
The solvables CpeId if available.
Definition: Solvable.cc:703
unsigned long long lookupNumAttribute(const SolvAttr &attr, unsigned long long notfound_r) const
Definition: SolvableType.h:163
bool multiversionInstall() const
Whether different versions of this package can be installed at the same time.
Definition: Solvable.cc:434
bool isPatternPackage() const
Definition: SolvableType.h:86
CapabilitySet providesNamespace(const std::string &namespace_r) const
Definition: SolvableType.h:135
ByteCount downloadSize() const
Definition: SolvableType.h:147
Capabilities dep_recommends() const
Definition: SolvableType.h:114
bool isSystem() const
Return whether this Solvable belongs to the system repo.
Definition: Solvable.cc:377
std::string asString() const
Definition: SolvableType.h:99
bool isPatternPackage() const
Whether this solvable provides the patternToken.
Definition: Solvable.h:164
std::string asUserString() const
Definition: SolvableType.h:100
LocaleSet getSupportedLocales() const
Definition: SolvableType.h:142
&#39;Language[_Country]&#39; codes.
Definition: Locale.h:50
bool supportsLocale(const Locale &locale_r) const
Whether this Solvable supports a specific Locale.
Definition: Solvable.cc:679
std::unordered_set< Capability > CapabilitySet
Definition: Capability.h:35
int compareByNVR(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Compare according to kind, name and edition.
Definition: Solvable.h:519
bool identical(const Solvable &lhs, const Solvable &rhs)
relates: Solvable Test for same content.
Definition: Solvable.h:498
std::string lookupStrAttribute(const SolvAttr &attr) const
returns the string attribute value for attr or an empty string if it does not exists.
Definition: Solvable.cc:134
bool isBlacklisted() const
Definition: SolvableType.h:90
std::string summary(const Locale &lang_r=Locale()) const
Definition: SolvableType.h:150
Capabilities dep_enhances() const
Definition: Solvable.cc:518
bool supportsRequestedLocales() const
Whether this Solvable supports at least one requested locale.
Definition: Solvable.cc:693
bool isNeedreboot() const
Whether this solvable triggers the reboot-needed hint if installed/updated.
Definition: Solvable.cc:398
bool isKind(TIterator begin, TIterator end) const
Definition: SolvableType.h:68
bool supportsLocale(const Locale &locale_r) const
Definition: SolvableType.h:139
Capabilities dep_enhances() const
Definition: SolvableType.h:116
bool needToAcceptLicense() const
Definition: SolvableType.h:155
std::string insnotify(const Locale &lang_r=Locale()) const
UI hint text when selecting the solvable for install (opt.
Definition: Solvable.cc:752
std::string summary(const Locale &lang_r=Locale()) const
Short (singleline) text describing the solvable (opt.
Definition: Solvable.cc:740
bool onSystemByUser() const
Whether this is known to be installed on behalf of a user request.
Definition: Solvable.cc:383
ByteCount installSize() const
Definition: SolvableType.h:146
sat::detail::SolvableIdType IdType
Definition: Solvable.h:56
A sat capability.
Definition: Capability.h:62
bool isPtfMaster() const
Subset of isPtf (provides ptfMasterToken).
Definition: Solvable.cc:421
Capabilities dep_provides() const
Definition: SolvableType.h:110
std::ostream & dumpOn(std::ostream &str, const LocaleSupport &obj)
relates: LocaleSupport More verbose stream output including dependencies
Capabilities dep(Dep which_r) const
Return Capabilities selected by Dep constant.
Definition: Solvable.h:266
unsigned long long lookupNumAttribute(const SolvAttr &attr) const
Definition: SolvableType.h:162
bool needToAcceptLicense() const
True except for well known exceptions (i.e show license but no need to accept it).
Definition: Solvable.cc:781
Capabilities dep_prerequires() const
Definition: SolvableType.h:118
Capabilities conflicts() const
Definition: SolvableType.h:125
Capabilities dep_supplements() const
Definition: SolvableType.h:117
bool operator!=(const FileConflicts &lhs, const FileConflicts &rhs)
relates: FileConflicts
Definition: FileConflicts.h:89
detail::IdType lookupIdAttribute(const SolvAttr &attr) const
Definition: SolvableType.h:161
bool isKind(const ResKind &kind_r) const
Definition: SolvableType.h:64
std::string insnotify(const Locale &lang_r=Locale()) const
Definition: SolvableType.h:152
bool identical(const Solvable &rhs) const
Definition: SolvableType.h:102
Base class for creating Solvable based types.
Definition: SolvableType.h:54
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
Definition: SolvableType.h:154
bool lookupBoolAttribute(const SolvAttr &attr) const
Definition: SolvableType.h:160
std::string lookupStrAttribute(const SolvAttr &attr) const
Definition: SolvableType.h:158
Capabilities recommends() const
Definition: SolvableType.h:127
Resolvable kinds.
Definition: ResKind.h:32
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1
bool supportsLocales() const
Whether this Solvable claims to support locales.
Definition: Solvable.cc:673
Date buildtime() const
The items build time.
Definition: Solvable.cc:440
Solvable satSolvable() const
Return the corresponding sat::Solvable.
Definition: SolvableType.h:57
std::string licenseToConfirm(const Locale &lang_r=Locale()) const
License or agreement to accept before installing the solvable (opt.
Definition: Solvable.cc:764
bool isPtf() const
Whether this solvable belongs to a PTF (provides ptfMasterToken or ptfPackageToken).
Definition: Solvable.cc:418
IdString vendor() const
Definition: SolvableType.h:73
Repository repository() const
Definition: SolvableType.h:75
CapabilitySet valuesOfNamespace(const std::string &namespace_r) const
Definition: SolvableType.h:136
ResKind kind() const
Definition: SolvableType.h:63
IdString ident() const
The identifier.
Definition: Solvable.cc:273
Date installtime() const
The items install time (false if not installed).
Definition: Solvable.cc:446
Date buildtime() const
Definition: SolvableType.h:96
bool lookupBoolAttribute(const SolvAttr &attr) const
returns the boolean attribute value for attr or false if it does not exists.
Definition: Solvable.cc:174
bool isRetracted() const
Whether this solvable is retracted (provides retractedToken).
Definition: Solvable.cc:408