89 std::string
flavor()
const;
96 std::string
type()
const;
99 std::list<std::string>
flags()
const;
127 template <
class TIterator>
130 for_( it, begin, end )
140 bool isTargetDistribution()
const;
145 std::string registerTarget()
const;
150 std::string registerRelease()
const;
155 std::string registerFlavor()
const;
167 UrlList urls(
const std::string & key_r )
const;
170 UrlList releaseNotesUrls()
const;
173 UrlList registerUrls()
const;
176 UrlList smoltUrls()
const;
182 UrlList updateUrls()
const;
188 UrlList extraUrls()
const;
195 UrlList optionalUrls()
const;
221 {
return _list.empty(); }
224 {
return _list.size(); }
227 {
return _list.begin(); }
230 {
return _list.end(); }
Store and operate on date (time_t).
Helper to iterate a products URL lists.
ListType::size_type size_type
const_iterator end() const
ListType::const_iterator const_iterator
Url first() const
The first Url or an empty Url.
std::list< Url > ListType
std::string key() const
The key used to retrieve this list (for debug)
ListType::value_type value_type
const_iterator begin() const
std::string _key
Change to directly iterate the .solv.
ReplacedProducts replacedProducts() const
Array of installed Products that would be replaced by installing this one.
std::list< std::string > flags() const
The product flags.
std::string flavor() const
The product flavor (LiveCD Demo, FTP edition,...).
ResTraits< Self > TraitsType
std::string shortName() const
Untranslated short name like SLES 10 (fallback: name)
std::string referenceFilename() const
For installed products the name of the corresponding /etc/products.d entry.
Product(const sat::Solvable &solvable_r)
Ctor.
bool hasEndOfLife() const
Return whether an EndOfLife value is actually defined in the metadata.
CapabilitySet droplist() const
List of packages included in older versions of this product and now dropped.
bool hasUpdateContentIdentifier(const Repository::ContentIdentifier &cident_r) const
Whether cident_r is listed as required update repository.
Date endOfLife() const
The date when this Product goes out of support as indicated by its medadata.
sat::Solvable referencePackage() const
The reference package providing the product metadata, if such a package exists.
std::string type() const
Get the product type Well, in an ideal world there is only one base product.
std::vector< Repository::ContentIdentifier > updateContentIdentifier() const
ContentIdentifier of required update repositories.
std::vector< constPtr > ReplacedProducts
bool hasUpdateContentIdentifier(TIterator begin, TIterator end) const
Whether one of the ContentIdentifier is listed as required update repository.
std::string productLine() const
Vendor specific string denoting the product line.
TraitsType::constPtrType constPtr
std::string ContentIdentifier
ResObject(const sat::Solvable &solvable_r)
Ctor.
A Solvable object within the sat Pool.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
ResTraits< TRes >::PtrType make(const sat::Solvable &solvable_r)
Directly create a certain kind of ResObject from sat::Solvable.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
std::unordered_set< Capability > CapabilitySet
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
intrusive_ptr< Self > PtrType
intrusive_ptr< const Self > constPtrType
#define for_(IT, BEG, END)
Convenient for-loops using iterator.
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.