37 : _enabled( indeterminate )
38 , _autorefresh( indeterminate )
41 Impl(
const std::string & alias_r )
42 : _enabled( indeterminate )
43 , _autorefresh( indeterminate )
44 { setAlias( alias_r ); }
56 void setAlias(
const std::string & alias_r )
58 _alias = _escaped_alias = alias_r;
64 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
67 {
return new Impl( *
this ); }
77 RepoInfoBase::RepoInfoBase()
78 : _pimpl( new
Impl() )
82 : _pimpl( new
Impl(alias) )
140 str <<
"--------------------------------------" << std::endl;
141 str <<
"- alias : " <<
alias() << std::endl;
143 str <<
"- name : " <<
rawName() << std::endl;
144 str <<
"- enabled : " <<
enabled() << std::endl;
145 str <<
"- autorefresh : " <<
autorefresh() << std::endl;
153 str <<
"[" <<
alias() <<
"]" << endl;
155 str <<
"name=" <<
rawName() << endl;
156 str <<
"enabled=" << (
enabled() ?
"1" :
"0") << endl;
157 str <<
"autorefresh=" << (
autorefresh() ?
"1" :
"0") << endl;
164 return str <<
"<!-- there's no XML representation of RepoInfoBase -->" << endl;