12 #ifndef ZYPP_SAT_REPOSITORY_H
13 #define ZYPP_SAT_REPOSITORY_H
40 typedef filter_iterator<detail::ByRepository, sat::detail::SolvableIterator>
SolvableIterator;
60 explicit operator bool()
const
61 {
return get() !=
nullptr; }
79 std::string
alias()
const;
82 std::string
name()
const;
175 class ProductInfoIterator;
226 struct EraseFromPool;
244 void addSolv(
const Pathname & file_r );
253 void addHelix(
const Pathname & file_r );
264 ::_Repo *
get()
const;
292 {
return lhs.
get() == rhs.
get(); }
296 {
return lhs.
get() != rhs.
get(); }
300 {
return lhs.
get() < rhs.
get(); }
320 Repository::ProductInfoIterator
321 , sat::LookupAttr::iterator
323 , boost::forward_traversal_tag
334 std::string
label()
const;
342 std::string
cpeId()
const;
404 , boost::forward_traversal_tag
455 #endif // ZYPP_SAT_REPOSITORY_H
Repository repository() const
The Repository this Solvable belongs to.
RepoInfo info() const
Return any associated RepoInfo.
Functor filtering Solvable by Repository.
A Solvable object within the sat Pool.
sat::ArrayAttr< std::string, std::string > Keywords
std::string alias() const
Short unique string to identify a repo.
std::string name() const
Label to display for this repo.
sat::Solvable::IdType addSolvable()
void addSolv(const Pathname &file_r)
Load Solvables from a solv-file.
IdType id() const
Expert backdoor.
bool operator<(const Repository &lhs, const Repository &rhs)
std::string label() const
Product label.
std::ostream & dumpAsXmlOn(std::ostream &str, const CheckSum &obj)
::_Repo * RepoIdType
Id type to connect Repo and sat-repo.
sat::Solvable::IdType addSolvables(unsigned count_r)
Add count_r new empty Solvable to this Repository.
bool operator!=(const Repository &lhs, const Repository &rhs)
static const RepoIdType noRepoId(0)
Id to denote Repo::noRepository.
RepositoryIterator(::_Repo **p)
void clearInfo()
Remove any RepoInfo set for this repository.
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
What is known about a repository.
Date generatedTimestamp() const
Timestamp when this repository was generated.
Repository()
Default ctor creates noRepository.
LookupAttr::transformIterator based container to retrieve list attributes.
int satInternalSubPriority() const
bool isSystemRepo() const
Return whether this is the system repository.
bool providesUpdatesFor(const std::string &cpeid) const
whether the repository claims to update something prod with key cpeid
ByRepository(const Repository &repository_r)
filter_iterator< detail::ByRepository, sat::detail::SolvableIterator > SolvableIterator
bool isUpdateRepo() const
if the repository claims to update something then it is an update repository
sat::detail::size_type size_type
Repository nextInPool() const
Return next Repository in Pool (or noRepository).
std::string asUserString() const
User string.
Functor removing Repository from it's Pool.
Store and operate on date (time_t).
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
Backlink to the associated PoolImpl.
bool operator()(const sat::Solvable &slv_r) const
std::ostream & operator<<(std::ostream &str, const Exception &obj)
void setInfo(const RepoInfo &info_r)
Set RepoInfo for this repository.
Date suggestedExpirationTimestamp() const
Suggested expiration timestamp.
void operator()(Repository repository_r) const
friend class boost::iterator_core_access
Repository(IdType id_r)
PoolImpl ctor.
Query class for Repository related products.
Keywords keywords() const
repository keywords (tags)
bool operator==(const Repository &lhs, const Repository &rhs)
::_Repo * get() const
Expert backdoor.
bool solvablesEmpty() const
Whether Repository contains solvables.
ByRepository(sat::detail::RepoIdType id_r)
std::string cpeId() const
The Common Platform Enumeration name for this product.
size_type solvablesSize() const
Number of solvables in Repository.
void addHelix(const Pathname &file_r)
Load Solvables from a helix-file.
Repository dereference() const
static const Repository noRepository
Represents no Repository.
int satInternalPriority() const
libsolv internal priorities.
void eraseFromPool()
Remove this Repository from it's Pool.
friend class boost::iterator_core_access
ProductInfoIterator updatesProductEnd() const
Get an iterator to the end of the repository compatible distros.
sat::detail::RepoIdType IdType
static const std::string & systemRepoAlias()
Reserved system repository alias .
sat::detail::SolvableIdType IdType
ProductInfoIterator compatibleWithProductEnd() const
Get an iterator to the end of the repository compatible distros.
ProductInfoIterator updatesProductBegin() const
Get an iterator to the beginning of the repository compatible distros.
bool maybeOutdated() const
The suggested expiration date of this repository already passed.
ProductInfoIterator compatibleWithProductBegin() const
Get an iterator to the beginning of the repository compatible distros.