Go to the documentation of this file.
41 Impl(
const std::string & alias_r )
64 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
67 {
return new Impl( *
this ); }
78 : _pimpl( new
Impl() )
82 : _pimpl( new
Impl(alias) )
140 str <<
"--------------------------------------" << std::endl;
141 str <<
"- alias : " <<
alias() << std::endl;
144 str <<
"- enabled : " <<
enabled() << std::endl;
153 str <<
"[" <<
alias() <<
"]" << endl;
156 str <<
"enabled=" << (
enabled() ?
"1" :
"0") << endl;
164 return str <<
"<!-- there's no XML representation of RepoInfoBase -->" << endl;
virtual std::ostream & dumpAsIniOn(std::ostream &str) const
Write this RepoInfoBase object into str in a .repo (ini) file format.
Impl * clone() const
clone for RWCOW_pointer
std::string rawName() const
The raw metadata name (no default, no variables replaced).
void setAutorefresh(bool autorefresh)
enable or disable autorefresh
void setName(const std::string &name)
set the repository name
bool enabled() const
If enabled is false, then this repository must be ignored as if does not exists, except when checking...
RepoVariablesReplacedString _name
void setFilepath(const Pathname &filename)
set the path to the .repo file
virtual std::ostream & dumpAsXmlOn(std::ostream &str, const std::string &content="") const
Write an XML representation of this object with content (if available).
Functor replacing repository variables.
std::string _escaped_alias
std::string escaped_alias() const
Same as alias(), just escaped in a way to be a valid file name.
std::ostream & operator<<(std::ostream &str, const DeltaCandidates &obj)
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
std::string alias() const
unique identifier for this source.
std::string & replaceAll(std::string &str_r, const std::string &from_r, const std::string &to_r)
Replace all occurrences of from_r with to_r in str_r (inplace).
std::string name() const
Repository name.
static ZConfig & instance()
Singleton ctor.
Easy-to use interface to the ZYPP dependency resolver.
std::string label() const
Label for use in messages for the user interface.
void setEnabled(bool enabled)
enable or disable the repository
Pathname filepath() const
File where this repo was read from.
Base class implementing common features of RepoInfo and ServiceInfo.
bool autorefresh() const
If true, the repostory must be refreshed before creating resolvables from it.
Impl(const std::string &alias_r)
base::ValueTransform< std::string, repo::RepoVariablesStringReplacer > RepoVariablesReplacedString
Helper managing repo variables replaced strings.
void setAlias(const std::string &alias_r)
String related utilities and Regular expression matching.
void setAlias(const std::string &alias)
set the repository alias
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
virtual std::ostream & dumpOn(std::ostream &str) const
Write a human-readable representation of this RepoInfoBase object into the str stream.