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; }
69 static const std::string & systemRepoAlias();
72 bool isSystemRepo()
const;
84 std::string alias()
const;
87 std::string name()
const;
90 std::string label()
const;
100 ContentRevision contentRevision()
const;
113 ContentIdentifier contentIdentifier()
const;
116 bool hasContentIdentifier(
const ContentIdentifier & id_r )
const;
134 Date generatedTimestamp()
const;
152 Date suggestedExpirationTimestamp()
const;
157 Keywords keywords()
const;
160 bool hasKeyword(
const std::string & val_r )
const;
170 bool maybeOutdated()
const;
178 bool isUpdateRepo()
const;
186 bool providesUpdatesFor(
const CpeId & cpeid_r )
const;
189 bool solvablesEmpty()
const;
192 size_type solvablesSize()
const;
195 SolvableIterator solvablesBegin()
const;
198 SolvableIterator solvablesEnd()
const;
257 void setInfo(
const RepoInfo & info_r );
264 void eraseFromPool();
285 void addSolv(
const Pathname & file_r );
294 void addHelix(
const Pathname & file_r );
300 {
return addSolvables( 1 ); }
307 IdType
id()
const {
return _id; }
316 int satInternalPriority()
const;
317 int satInternalSubPriority()
const;
333 {
return lhs.
get() == rhs.
get(); }
337 {
return lhs.
get() != rhs.
get(); }
341 {
return lhs.
get() < rhs.
get(); }
364 Repository::ProductInfoIterator
365 , sat::LookupAttr::iterator
367 , boost::forward_traversal_tag
376 std::string label()
const;
387 friend class boost::iterator_core_access;
394 {
return makeIterable( compatibleWithProductBegin(), compatibleWithProductEnd() ); }
398 {
return makeIterable( updatesProductBegin(), updatesProductEnd() ); }
447 , sat::detail::CRepo **
449 , boost::forward_traversal_tag
463 friend class boost::iterator_core_access;
495 {
return makeIterable( solvablesBegin(), solvablesEnd() ); }
504 #endif // ZYPP_SAT_REPOSITORY_H Repository repository() const
The Repository this Solvable belongs to.
RepositoryIterator(sat::detail::CRepo **p)
Functor filtering Solvable by Repository.
A Solvable object within the sat Pool.
sat::ArrayAttr< std::string, std::string > Keywords
sat::Solvable::IdType addSolvable()
IdType id() const
Expert backdoor.
bool operator<(const Repository &lhs, const Repository &rhs)
Iterable< SolvableIterator > solvables() const
Iterate the repositories Solvables.
::_Repo CRepo
Wrapped libsolv C data type exposed as backdoor.
::_Repo * RepoIdType
Id type to connect Repo and sat-repo.
bool operator!=(const Repository &lhs, const Repository &rhs)
static const RepoIdType noRepoId(0)
Id to denote Repo::noRepository.
String related utilities and Regular expression matching.
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.
ByRepository(const Repository &repository_r)
std::string ContentRevision
Iterable< ProductInfoIterator > compatibleWithProduct() const
Iterate the repository compatible distros.
filter_iterator< detail::ByRepository, sat::detail::SolvableIterator > SolvableIterator
std::ostream & operator<<(std::ostream &str, const Dump< Tp > &obj)
sat::detail::size_type size_type
std::string asUserString() const
User string: label (alias or name)
Functor removing Repository from it's Pool.
Store and operate on date (time_t).
Backlink to the associated PoolImpl.
sat::detail::CRepo * get() const
Expert backdoor.
bool operator()(const sat::Solvable &slv_r) const
void operator()(Repository repository_r) const
Repository(IdType id_r)
PoolImpl ctor.
Query class for Repository related products.
Iterable< ProductInfoIterator > updatesProduct() const
Iterate distos the repository provides upadates for.
bool operator==(const Repository &lhs, const Repository &rhs)
ByRepository(sat::detail::RepoIdType id_r)
std::string ContentIdentifier
Repository dereference() const
static const Repository noRepository
Represents no Repository.
void eraseFromPool()
Remove this Repository from it's Pool.
sat::detail::RepoIdType IdType
sat::detail::SolvableIdType IdType
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpAsXmlOn(std::ostream &str, const Tp &obj, const std::string &name_r)