20#include <zypp/base/Iterable.h>
209 virtual std::ostream &
dumpAsXmlOn( std::ostream &
str,
const std::string & content =
"" )
const;
Store and operate on date (time_t).
What is known about a repository.
void setProbedTtl(Date::Duration ttl_r) const
Lazy init sugested TTL.
ReposToEnable::size_type reposToEnableSize() const
repo::ServiceType type() const
Service type.
ReposToEnable::const_iterator reposToEnableBegin() const
Date::Duration ttl() const
Sugested TTL between two metadata auto-refreshs.
void setLrf(Date lrf_r)
Set date of last refresh.
void setType(const repo::ServiceType &type)
Set service type.
Iterable< ReposToEnable::const_iterator > reposToEnable() const
Date lrf() const
Date of last refresh (if known).
bool repoToDisableFind(const std::string &alias_r) const
Whether alias_r is mentioned in ReposToDisable.
bool repoToEnableFind(const std::string &alias_r) const
Whether alias_r is mentioned in ReposToEnable.
virtual std::ostream & dumpAsXmlOn(std::ostream &str, const std::string &content="") const
Write an XML representation of this ServiceInfo object.
const RepoStates & repoStates() const
Access the remembered repository states.
ReposToDisable::const_iterator reposToDisableEnd() const
ServiceInfo()
Default ctor creates noService.
ReposToEnable::const_iterator reposToEnableEnd() const
shared_ptr< ServiceInfo > ServiceInfo_Ptr
Iterable< ReposToDisable::const_iterator > reposToDisable() const
shared_ptr< const ServiceInfo > ServiceInfo_constPtr
void addRepoToDisable(const std::string &alias_r)
Add alias_r to the set of ReposToDisable.
void clearReposToEnable()
Clear the set of ReposToEnable.
std::set< std::string > ReposToDisable
Container of repos.
void delRepoToDisable(const std::string &alias_r)
Remove alias_r from the set of ReposToDisable.
bool reposToEnableEmpty() const
Url url() const
The service url.
RWCOW_pointer< Impl > _pimpl
std::set< std::string > ReposToEnable
Container of repos.
void setProbedType(const repo::ServiceType &t) const
Lazy init service type.
void setTtl(Date::Duration ttl_r)
Set sugested TTL.
std::map< std::string, RepoState > RepoStates
Url rawUrl() const
The service raw url (no variables replaced)
void addRepoToEnable(const std::string &alias_r)
Add alias_r to the set of ReposToEnable.
std::list< ServiceInfo > ServiceInfoList
void clearReposToDisable()
Clear the set of ReposToDisable.
void setUrl(const Url &url)
Set the service url (raw value)
ReposToDisable::const_iterator reposToDisableBegin() const
void delRepoToEnable(const std::string &alias_r)
Remove alias_r from the set of ReposToEnable.
virtual std::ostream & dumpAsIniOn(std::ostream &str) const
Writes ServiceInfo to stream in ".service" format.
ReposToDisable::size_type reposToDisableSize() const
void setRepoStates(RepoStates newStates_r)
Remember a new set of repository states.
static const ServiceInfo noService
Represents an empty service.
bool reposToDisableEmpty() const
Base class implementing common features of RepoInfo and ServiceInfo.
std::string alias() const
unique identifier for this source.
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
RW_pointer supporting 'copy on write' functionality.
bool operator==(const RepoState &rhs) const
RepoState(const RepoInfo &repo_r)
friend std::ostream & operator<<(std::ostream &str, const RepoState &obj)
bool operator!=(const RepoState &rhs) const
Service type enumeration.