60 if ( _type == repo::ServiceType::NONE
61 && type_r != repo::ServiceType::NONE )
64 const_cast<Impl*
>(
this)->_type = type_r;
69 friend Impl * rwcowClone<Impl>(
const Impl * rhs );
73 {
return new Impl( *
this ); }
86 ServiceInfo::ServiceInfo() : _pimpl( new
Impl() ) {}
89 : repo::RepoInfoBase(alias), _pimpl( new
Impl() )
93 : repo::RepoInfoBase(alias), _pimpl( new
Impl(url) )
168 <<
"enabled=" << obj.
enabled <<
" "
175 RepoInfoBase::dumpAsIniOn(str)
176 <<
"url = " <<
rawUrl() << endl
177 <<
"type = " <<
type() << endl;
180 str <<
"ttl_sec = " <<
ttl() << endl;
190 std::string tag(
"repo_" );
194 str << tag <<
"=" << el.first << endl
195 << tag <<
"_enabled=" << state.
enabled << endl
196 << tag <<
"_autorefresh=" << state.
autorefresh << endl;
199 << tag <<
"_priority=" << state.
priority << endl;
216 <<
" enabled=\"" <<
enabled() <<
"\""
220 <<
" ttl_sec=\"" <<
ttl() <<
"\"";
225 str <<
">" << endl << content <<
"</service>" << endl;