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