12#ifndef REPOINFOBASE_H_
13#define REPOINFOBASE_H_
100 bool autorefresh()
const;
117 void setAlias(
const std::string &alias );
123 void setName(
const std::string &name );
129 void setEnabled(
bool enabled );
135 void setAutorefresh(
bool autorefresh );
145 void setFilepath(
const Pathname &filename );
151 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
157 virtual std::ostream & dumpAsIniOn( std::ostream &
str )
const;
163 virtual std::ostream &
dumpAsXmlOn( std::ostream &
str,
const std::string & content =
"" )
const;
184 std::ostream &
operator<<( std::ostream &
str,
const RepoInfoBase & obj );
Provides API related macros.
std::ostream & operator<<(std::ostream &str, const zypp::sat::detail::CDataiterator *obj)
relates: zypp::sat::LookupAttr::iterator Stream output of the underlying iterator for debug.
Base class implementing common features of RepoInfo and ServiceInfo.
std::string label() const
Label for use in messages for the user interface.
RepoInfoBase(const RepoInfoBase &)=default
std::string escaped_alias() const
Same as alias(), just escaped in a way to be a valid file name.
std::string asUserString() const
User string: label (alias or name).
std::string name() const
Repository name.
RepoInfoBase(RepoInfoBase &&) noexcept=default
std::string rawName() const
The raw metadata name (no default, no variables replaced).
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
std::string alias() const
unique identifier for this source.
String related utilities and Regular expression matching.
bool operator!=(const RepoInfoBase &lhs, const RepoInfoBase &rhs)
relates: RepoInfoBase
std::ostream & operator<<(std::ostream &str, const DeltaCandidates::Impl &obj)
relates: DeltaCandidates::Impl Stream output
bool operator==(const RepoInfoBase &lhs, const RepoInfoBase &rhs)
relates: RepoInfoBase
shared_ptr< const RepoInfoBase > RepoInfoBase_constPtr
relates: RepoInfoBase
bool operator<(const RepoInfoBase &lhs, const RepoInfoBase &rhs)
shared_ptr< RepoInfoBase > RepoInfoBase_Ptr
relates: RepoInfoBase
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpAsXmlOn(std::ostream &str, const Repository &obj)
relates: Repository XML output
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
relates: Capability Detailed stream output
RW_pointer supporting 'copy on write' functionality.