12 #ifndef ZYPP_SAT_REPOSITORY_H 13 #define ZYPP_SAT_REPOSITORY_H 41 typedef filter_iterator<detail::ByRepository, sat::detail::SolvableIterator>
SolvableIterator;
64 explicit operator bool()
const 65 {
return get() !=
nullptr; }
68 static const std::string & systemRepoAlias();
71 bool isSystemRepo()
const;
83 std::string alias()
const;
86 std::string name()
const;
89 std::string label()
const;
99 ContentRevision contentRevision()
const;
112 ContentIdentifier contentIdentifier()
const;
115 bool hasContentIdentifier(
const ContentIdentifier & id_r )
const;
133 Date generatedTimestamp()
const;
151 Date suggestedExpirationTimestamp()
const;
156 Keywords keywords()
const;
159 bool hasKeyword(
const std::string & val_r )
const;
169 bool maybeOutdated()
const;
177 bool isUpdateRepo()
const;
185 bool providesUpdatesFor(
const CpeId & cpeid_r )
const;
188 bool solvablesEmpty()
const;
191 size_type solvablesSize()
const;
194 SolvableIterator solvablesBegin()
const;
197 SolvableIterator solvablesEnd()
const;
246 void setInfo(
const RepoInfo & info_r );
253 void eraseFromPool();
274 void addSolv(
const Pathname & file_r );
283 void addHelix(
const Pathname & file_r );
289 {
return addSolvables( 1 ); }
294 ::_Repo *
get()
const;
296 IdType
id()
const {
return _id; }
305 int satInternalPriority()
const;
306 int satInternalSubPriority()
const;
322 {
return lhs.
get() == rhs.
get(); }
326 {
return lhs.
get() != rhs.
get(); }
330 {
return lhs.
get() < rhs.
get(); }
353 Repository::ProductInfoIterator
354 , sat::LookupAttr::iterator
356 , boost::forward_traversal_tag
365 std::string label()
const;
376 friend class boost::iterator_core_access;
430 , boost::forward_traversal_tag
444 friend class boost::iterator_core_access;
481 #endif // ZYPP_SAT_REPOSITORY_H Repository repository() const
The Repository this Solvable belongs to.
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)
::_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.
RepositoryIterator(::_Repo **p)
String related utilities and Regular expression matching.
What is known about a repository.
std::ostream & operator<<(std::ostream &str, const Dump< _Tp > &obj)
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
filter_iterator< detail::ByRepository, sat::detail::SolvableIterator > SolvableIterator
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.
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.
bool operator==(const Repository &lhs, const Repository &rhs)
::_Repo * get() const
Expert backdoor.
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)