12#ifndef ZYPP_SAT_REPOSITORY_H 
   13#define ZYPP_SAT_REPOSITORY_H 
   70        explicit operator bool()
 const 
   71        { 
return get() != 
nullptr; }
 
 
   74        static const std::string & systemRepoAlias();
 
   77        bool isSystemRepo() 
const;
 
   89        std::string alias() 
const;
 
   92        std::string name() 
const;
 
   95        std::string label() 
const;
 
  105        ContentRevision contentRevision() 
const;
 
  118        ContentIdentifier contentIdentifier() 
const;
 
  121        bool hasContentIdentifier( 
const ContentIdentifier & id_r ) 
const;
 
  139        Date generatedTimestamp() 
const;
 
  157        Date suggestedExpirationTimestamp() 
const;
 
  162        Keywords keywords() 
const;
 
  165        bool hasKeyword( 
const std::string & val_r ) 
const;
 
  175        bool maybeOutdated() 
const;
 
  183        bool isUpdateRepo() 
const;
 
  191        bool providesUpdatesFor( 
const CpeId & cpeid_r ) 
const;
 
  194        bool solvablesEmpty() 
const;
 
  197        size_type solvablesSize() 
const;
 
  200        SolvableIterator solvablesBegin() 
const;
 
  203        SolvableIterator solvablesEnd() 
const;
 
  211      class ProductInfoIterator;
 
  220      ProductInfoIterator compatibleWithProductBegin() 
const;
 
  227      ProductInfoIterator compatibleWithProductEnd() 
const;
 
  241      ProductInfoIterator updatesProductBegin() 
const;
 
  248      ProductInfoIterator updatesProductEnd() 
const;
 
  262        void setInfo( 
const RepoInfo & info_r );
 
  269        void eraseFromPool();
 
  272        struct EraseFromPool;
 
  290        void addSolv( 
const Pathname & file_r );
 
  299        void addHelix( 
const Pathname & file_r );
 
  308        void addTesttags(
const Pathname &file_r);
 
  330        int satInternalPriority() 
const;
 
  331        int satInternalSubPriority() 
const;
 
 
  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 
 
  476          friend class boost::iterator_core_access;
 
 
An iterator over the subset of elements of some sequence which satisfy a given predicate.
Common Platform Enumearation (2.3) See http://cpe.mitre.org/ for more information on the Common Platf...
Store and operate on date (time_t).
Iterable< TIterator > makeIterable(TIterator &&begin_r, TIterator &&end_r)
convenient construction.
What is known about a repository.
Query class for Repository related products.
std::string label() const
Product label.
CpeId cpeId() const
The Common Platform Enumeration name for this product.
friend class boost::iterator_core_access
static const Repository noRepository
Represents no Repository.
Repository()
Default ctor creates noRepository.
Repository(Repository &&) noexcept=default
sat::detail::CRepo * get() const
Expert backdoor.
bool operator==(const Repository &lhs, const Repository &rhs)
std::string label() const
Alias or name, according to ZConfig::repoLabelIsAlias.
filter_iterator< detail::ByRepository, sat::detail::SolvableIterator > SolvableIterator
SolvableIterator solvablesEnd() const
Iterator behind the last Solvable.
ProductInfoIterator compatibleWithProductEnd() const
Get an iterator to the end of the repository compatible distros.
sat::detail::size_type size_type
sat::Solvable::IdType addSolvables(unsigned count_r)
Add count_r new empty Solvable to this Repository.
SolvableIterator solvablesBegin() const
Iterator to the first Solvable.
std::string ContentRevision
ProductInfoIterator updatesProductEnd() const
Get an iterator to the end of distos the repository provides upadates for.
ProductInfoIterator compatibleWithProductBegin() const
Get an iterator to the beginning of the repository compatible distros.
Iterable< ProductInfoIterator > updatesProduct() const
Iterate distos the repository provides upadates for.
IdType id() const
Expert backdoor.
sat::Solvable::IdType addSolvable()
bool operator<(const Repository &lhs, const Repository &rhs)
sat::detail::RepoIdType IdType
bool operator!=(const Repository &lhs, const Repository &rhs)
Repository(const Repository &)=default
Iterable< ProductInfoIterator > compatibleWithProduct() const
Iterate the repository compatible distros.
Iterable< SolvableIterator > solvables() const
Iterate the repositories Solvables.
sat::ArrayAttr< std::string, std::string > Keywords
ProductInfoIterator updatesProductBegin() const
Get an iterator to the beginning of distos the repository provides upadates for.
std::string ContentIdentifier
std::string asUserString() const
User string: label (alias or name)
void eraseFromPool()
Remove this Repository from its Pool.
Repository dereference() const
RepositoryIterator(sat::detail::CRepo **p)
LookupAttr::TransformIterator based container to retrieve list attributes.
A Solvable object within the sat Pool.
Repository repository() const
The Repository this Solvable belongs to.
sat::detail::SolvableIdType IdType
String related utilities and Regular expression matching.
::s_Repo CRepo
Wrapped libsolv C data type exposed as backdoor.
CRepo * RepoIdType
Id type to connect Repo and sat-repo.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
std::ostream & dumpAsXmlOn(std::ostream &str, const Repository &obj)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Functor removing Repository from its Pool.
void operator()(Repository repository_r) const
Functor filtering Solvable by Repository.
ByRepository(sat::detail::RepoIdType id_r)
ByRepository(const Repository &repository_r)
bool operator()(const sat::Solvable &slv_r) const
Backlink to the associated PoolImpl.