12 #ifndef ZYPP_SERVICE_H
13 #define ZYPP_SERVICE_H
146 virtual std::ostream &
dumpAsIniOn( std::ostream & str )
const;
151 virtual std::ostream &
dumpAsXMLOn(std::ostream & str)
const;
161 std::ostream & str,
const std::string & content)
const;
184 #endif // ZYPP_SAT_REPOSITORY_H
std::string alias() const
unique identifier for this source.
std::set< std::string > ReposToEnable
Container of repos.
ReposToDisable::size_type reposToDisableSize() const
virtual std::ostream & dumpAsXMLOn(std::ostream &str) const
Write an XML representation of this ServiceInfo object.
ReposToEnable::const_iterator reposToEnableBegin() const
void clearReposToEnable()
Clear the set of ReposToEnable.
void addRepoToEnable(const std::string &alias_r)
Add alias_r to the set of ReposToEnable.
ReposToDisable::const_iterator reposToDisableEnd() const
void setType(const repo::ServiceType &type)
Set service type.
RWCOW_pointer< Impl > _pimpl
ReposToDisable::const_iterator reposToDisableBegin() const
shared_ptr< const ServiceInfo > ServiceInfo_constPtr
void clearReposToDisable()
Clear the set of ReposToDisable.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Service type enumeration.
bool reposToEnableEmpty() const
ServiceInfo()
Default ctor creates noService.
void delRepoToEnable(const std::string &alias_r)
Remove alias_r from the set of ReposToEnable.
bool reposToDisableEmpty() const
void setUrl(const Url &url)
Sets url for this service.
std::set< std::string > ReposToDisable
Container of repos.
std::list< ServiceInfo > ServiceInfoList
static const ServiceInfo noService
Represents an empty service.
bool repoToDisableFind(const std::string &alias_r) const
Whether alias_r is mentioned in ReposToDisable.
void delRepoToDisable(const std::string &alias_r)
Remove alias_r from the set of ReposToDisable.
void addRepoToDisable(const std::string &alias_r)
Add alias_r to the set of ReposToDisable.
Base class implementing common features of RepoInfo and ServiceInfo.
bool repoToEnableFind(const std::string &alias_r) const
Whether alias_r is mentioned in ReposToEnable.
ReposToEnable::const_iterator reposToEnableEnd() const
ReposToEnable::size_type reposToEnableSize() const
shared_ptr< ServiceInfo > ServiceInfo_Ptr
Url url() const
Gets url to service.
void setProbedType(const repo::ServiceType &t) const
virtual std::ostream & dumpAsIniOn(std::ostream &str) const
Writes ServiceInfo to stream in ".service" format.
repo::ServiceType type() const
RW_pointer supporting 'copy on write' functionality.