12 #ifndef ZYPP_SAT_REPOSITORY_H 13 #define ZYPP_SAT_REPOSITORY_H 42 using SolvableIterator = filter_iterator<detail::ByRepository, sat::detail::SolvableIterator>;
70 explicit operator bool()
const 71 {
return get() !=
nullptr; }
89 std::string
alias()
const;
92 std::string
name()
const;
95 std::string
label()
const;
165 bool hasKeyword(
const std::string & val_r )
const;
211 class ProductInfoIterator;
272 struct EraseFromPool;
346 {
return lhs.
get() == rhs.
get(); }
350 {
return lhs.
get() != rhs.
get(); }
354 {
return lhs.
get() < rhs.
get(); }
377 Repository::ProductInfoIterator
378 , sat::LookupAttr::iterator
380 , boost::forward_traversal_tag
389 std::string
label()
const;
460 , sat::detail::CRepo **
462 , boost::forward_traversal_tag
517 #endif // ZYPP_SAT_REPOSITORY_H int satInternalSubPriority() const
RepositoryIterator(sat::detail::CRepo **p)
ContentIdentifier contentIdentifier() const
Unique string identifying a repositories content.
Functor filtering Solvable by Repository.
bool isUpdateRepo() const
Hint whether the Repo may provide updates for a product.
A Solvable object within the sat Pool.
Date suggestedExpirationTimestamp() const
Suggested expiration timestamp.
bool isSystemRepo() const
Return whether this is the system repository.
sat::Solvable::IdType addSolvable()
void addSolv(const Pathname &file_r)
Load Solvables from a solv-file.
bool operator<(const Repository &lhs, const Repository &rhs)
bool providesUpdatesFor(const CpeId &cpeid_r) const
Hint whether the Repo may provide updates for a product identified by its CpeId.
ProductInfoIterator compatibleWithProductBegin() const
Get an iterator to the beginning of the repository compatible distros.
::s_Repo CRepo
Wrapped libsolv C data type exposed as backdoor.
void operator()(Repository repository_r) const
sat::Solvable::IdType addSolvables(unsigned count_r)
Add count_r new empty Solvable to this Repository.
std::string name() const
Label to display for this repo.
bool operator!=(const Repository &lhs, const Repository &rhs)
static const RepoIdType noRepoId(0)
Id to denote Repo::noRepository.
std::string ContentRevision
void clearInfo()
Remove any RepoInfo set for this repository.
ProductInfoIterator compatibleWithProductEnd() const
Get an iterator to the end of the repository compatible distros.
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
What is known about a repository.
Common Platform Enumearation (2.3) See http://cpe.mitre.org/ for more information on the Common Platf...
Repository()
Default ctor creates noRepository.
LookupAttr::TransformIterator based container to retrieve list attributes.
bool maybeOutdated() const
The suggested expiration date of this repository already passed.
std::string label() const
Product label.
filter_iterator< detail::ByRepository, sat::detail::SolvableIterator > SolvableIterator
Iterable< SolvableIterator > solvables() const
Iterate the repositories Solvables.
ByRepository(const Repository &repository_r)
sat::detail::size_type size_type
void addTesttags(const Pathname &file_r)
Load Solvables from a libsolv testtags-file.
CpeId cpeId() const
The Common Platform Enumeration name for this product.
Repository repository() const
The Repository this Solvable belongs to.
Functor removing Repository from its Pool.
Store and operate on date (time_t).
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
std::ostream & dumpAsXmlOn(std::ostream &str, const Repository &obj)
Backlink to the associated PoolImpl.
sat::detail::CRepo * get() const
Expert backdoor.
void setInfo(const RepoInfo &info_r)
Set RepoInfo for this repository.
friend class boost::iterator_core_access
Iterable< ProductInfoIterator > updatesProduct() const
Iterate distos the repository provides upadates for.
RepoInfo info() const
Return any associated RepoInfo.
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
Keywords keywords() const
repository keywords (tags)
bool hasKeyword(const std::string &val_r) const
Whether val_r is present in keywords.
Query class for Repository related products.
Iterable< ProductInfoIterator > compatibleWithProduct() const
Iterate the repository compatible distros.
bool operator()(const sat::Solvable &slv_r) const
std::string ContentIdentifier
Date generatedTimestamp() const
Timestamp when this repository was generated.
sat::detail::RepoIdType IdType
int satInternalPriority() const
libsolv internal priorities.
bool operator==(const Repository &lhs, const Repository &rhs)
ProductInfoIterator updatesProductBegin() const
Get an iterator to the beginning of distos the repository provides upadates for.
std::string asUserString() const
User string: label (alias or name)
ByRepository(sat::detail::RepoIdType id_r)
bool hasContentIdentifier(const ContentIdentifier &id_r) const
Whether id_r matches this repos content identifier.
sat::ArrayAttr< std::string, std::string > Keywords
Repository nextInPool() const
Return next Repository in Pool (or noRepository).
void addHelix(const Pathname &file_r)
Load Solvables from a helix-file.
CRepo * RepoIdType
Id type to connect Repo and sat-repo.
std::string alias() const
Short unique string to identify a repo.
ContentRevision contentRevision() const
Timestamp or arbitrary user supplied string.
static const Repository noRepository
Represents no Repository.
ProductInfoIterator updatesProductEnd() const
Get an iterator to the end of distos the repository provides upadates for.
sat::detail::SolvableIdType IdType
void eraseFromPool()
Remove this Repository from its Pool.
friend class boost::iterator_core_access
Repository dereference() const
bool solvablesEmpty() const
Whether Repository contains solvables.
static const std::string & systemRepoAlias()
Reserved system repository alias .
size_type solvablesSize() const
Number of solvables in Repository.
IdType id() const
Expert backdoor.
Easy-to use interface to the ZYPP dependency resolver.
std::string label() const
Alias or name, according to ZConfig::repoLabelIsAlias.