12 #ifndef REPOINFOBASE_H_
13 #define REPOINFOBASE_H_
52 std::string
alias()
const;
65 std::string
name()
const;
72 std::string
label()
const;
105 void setAlias(
const std::string &alias );
111 void setName(
const std::string &name );
139 virtual std::ostream &
dumpOn( std::ostream & str )
const;
145 virtual std::ostream &
dumpAsIniOn( std::ostream & str )
const;
150 virtual std::ostream &
dumpAsXmlOn( std::ostream & str,
const std::string & content =
"" )
const;
174 std::ostream &
operator<<( std::ostream &
str,
const RepoInfoBase & obj );
std::string name() const
Repository short label.
std::string alias() const
unique identifier for this source.
std::string escaped_alias() const
Same as alias(), just escaped in a way to be a valid file name.
void setAutorefresh(bool autorefresh)
enable or disable autorefresh
Pathname filepath() const
File where this repo was read from.
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.
ZYPP_DEPRECATED std::ostream & dumpAsXMLOn(std::ostream &str, const std::string &content="") const
void setFilepath(const Pathname &filename)
set the path to the .repo file
bool operator<(const RepoInfoBase &lhs, const RepoInfoBase &rhs)
virtual std::ostream & dumpAsIniOn(std::ostream &str) const
Write this RepoInfoBase object into str in a .repo (ini) file format.
virtual std::ostream & dumpOn(std::ostream &str) const
Write a human-readable representation of this RepoInfoBase object into the str stream.
bool enabled() const
If enabled is false, then this repository must be ignored as if does not exists, except when checking...
std::string label() const
Label for use in messages for the user interface.
Provides API related macros.
std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
bool operator!=(const RepoInfoBase &lhs, const RepoInfoBase &rhs)
friend std::ostream & operator<<(std::ostream &str, const RepoInfoBase &obj)
bool autorefresh() const
If true, the repostory must be refreshed before creating resolvables from it.
Base class implementing common features of RepoInfo and ServiceInfo.
void setName(const std::string &name)
set the repository name
shared_ptr< const RepoInfoBase > RepoInfoBase_constPtr
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
#define ZYPP_DEPRECATED
The ZYPP_DEPRECATED macro can be used to trigger compile-time warnings with gcc >= 3...
std::string asUserString() const
User string: label (alias or name)
Easy-to use interface to the ZYPP dependency resolver.
shared_ptr< RepoInfoBase > RepoInfoBase_Ptr
virtual std::ostream & dumpAsXmlOn(std::ostream &str, const std::string &content="") const
Write an XML representation of this object with content (if available).