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;
Pathname filepath() const
File where this repo was read from.
void setAutorefresh(bool autorefresh)
enable or disable autorefresh
static ZConfig & instance()
Singleton ctor.
Impl * clone() const
clone for RWCOW_pointer
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
RepoVariablesReplacedString _name
std::string _escaped_alias
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
std::string escaped_alias() const
Same as alias(), just escaped in a way to be a valid file name.
bool enabled() const
If enabled is false, then this repository must be ignored as if does not exists, except when checking...
boost::logic::tribool TriBool
3-state boolean logic (true, false and indeterminate).
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 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).
Impl(const std::string &alias_r)
base::ValueTransform< std::string, repo::RepoVariablesStringReplacer > RepoVariablesReplacedString
std::string name() const
Repository name.
Functor replacing repository variables.
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
void setAlias(const std::string &alias_r)
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.
std::string label() const
Label for use in messages for the user interface.