12 #ifndef REPOINFOBASE_H_ 13 #define REPOINFOBASE_H_ 17 #include <zypp/base/PtrTypes.h> 18 #include <zypp/APIConfig.h> 19 #include <zypp/Pathname.h> 55 std::string
alias()
const;
69 std::string
name()
const;
79 std::string
label()
const;
146 virtual std::ostream &
dumpOn( std::ostream &
str )
const;
158 virtual std::ostream &
dumpAsXmlOn( std::ostream &
str,
const std::string & content =
"" )
const;
179 std::ostream &
operator<<( std::ostream &
str,
const RepoInfoBase & obj );
Pathname filepath() const
File where this repo was read from.
void setAutorefresh(bool autorefresh)
enable or disable autorefresh
virtual std::ostream & dumpAsXmlOn(std::ostream &str, const std::string &content="") const
Write an XML representation of this object with content (if available).
void setEnabled(bool enabled)
enable or disable the repository
bool operator==(const RepoInfoBase &lhs, const RepoInfoBase &rhs)
void setAlias(const std::string &alias)
set the repository alias
String related utilities and Regular expression matching.
void setFilepath(const Pathname &filename)
set the path to the .repo file
bool operator<(const RepoInfoBase &lhs, const RepoInfoBase &rhs)
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)
bool enabled() const
If enabled is false, then this repository must be ignored as if does not exists, except when checking...
std::string alias() const
unique identifier for this source.
std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
std::string rawName() const
The raw metadata name (no default, no variables replaced).
bool operator!=(const RepoInfoBase &lhs, const RepoInfoBase &rhs)
friend std::ostream & operator<<(std::ostream &str, const RepoInfoBase &obj)
std::string name() const
Repository name.
Base class implementing common features of RepoInfo and ServiceInfo.
virtual std::ostream & dumpAsIniOn(std::ostream &str) const
Write this RepoInfoBase object into str in a .repo (ini) file format.
bool autorefresh() const
If true, the repostory must be refreshed before creating resolvables from it.
void setName(const std::string &name)
set the repository name
shared_ptr< const RepoInfoBase > RepoInfoBase_constPtr
virtual std::ostream & dumpOn(std::ostream &str) const
Write a human-readable representation of this RepoInfoBase object into the str stream.
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
Easy-to use interface to the ZYPP dependency resolver.
shared_ptr< RepoInfoBase > RepoInfoBase_Ptr
std::string label() const
Label for use in messages for the user interface.