+ << "enabled=" << obj.enabled << " "
+ << "autorefresh=" << obj.autorefresh << " "
+ << "priority=" << obj.priority;
+ }
+
+ std::ostream & ServiceInfo::dumpAsIniOn( std::ostream & str ) const
+ {
+ RepoInfoBase::dumpAsIniOn(str)
+ << "url = " << rawUrl() << endl
+ << "type = " << type() << endl;
+
+ if ( ttl() )
+ str << "ttl_sec = " << ttl() << endl;
+
+ if ( lrf() )
+ str << "lrf_dat = " << lrf().asSeconds() << endl;
+
+ if ( ! repoStates().empty() )
+ {
+ unsigned cnt = 0U;
+ for ( const auto & el : repoStates() )
+ {
+ std::string tag( "repo_" );
+ tag += str::numstring( ++cnt );
+ const RepoState & state( el.second );
+
+ str << tag << "=" << el.first << endl
+ << tag << "_enabled=" << state.enabled << endl
+ << tag << "_autorefresh=" << state.autorefresh << endl;
+ if ( state.priority != RepoInfo::defaultPriority() )
+ str
+ << tag << "_priority=" << state.priority << endl;
+ }
+ }
+
+ if ( ! reposToEnableEmpty() )
+ str << "repostoenable = " << str::joinEscaped( reposToEnableBegin(), reposToEnableEnd() ) << endl;
+ if ( ! reposToDisableEmpty() )
+ str << "repostodisable = " << str::joinEscaped( reposToDisableBegin(), reposToDisableEnd() ) << endl;
+ return str;
+ }
+
+ std::ostream & ServiceInfo::dumpAsXmlOn( std::ostream & str, const std::string & content ) const
+ {
+ str