#include <ostream>
#include <iostream>
-#include "zypp/base/String.h"
-#include "zypp/base/DefaultIntegral.h"
-#include "zypp/parser/xml/XmlEscape.h"
+#include <zypp/base/String.h>
+#include <zypp/base/DefaultIntegral.h>
+#include <zypp/parser/xml/XmlEscape.h>
-#include "zypp/RepoInfo.h"
-#include "zypp/ServiceInfo.h"
+#include <zypp/RepoInfo.h>
+#include <zypp/ServiceInfo.h>
-using namespace std;
+using std::endl;
using zypp::xml::escape;
///////////////////////////////////////////////////////////////////////////////
ServiceInfo::ServiceInfo() : _pimpl( new Impl() ) {}
- ServiceInfo::ServiceInfo(const string & alias)
+ ServiceInfo::ServiceInfo(const std::string & alias)
: repo::RepoInfoBase(alias), _pimpl( new Impl() )
{}
- ServiceInfo::ServiceInfo(const string & alias, const Url & url)
+ ServiceInfo::ServiceInfo(const std::string & alias, const Url & url)
: repo::RepoInfoBase(alias), _pimpl( new Impl(url) )
{}
return str;
}
- ostream & ServiceInfo::dumpAsXmlOn( ostream & str, const string & content ) const
+ std::ostream & ServiceInfo::dumpAsXmlOn( std::ostream & str, const std::string & content ) const
{
str
<< "<service"
<< " autorefresh=\"" << autorefresh() << "\""
<< " url=\"" << escape(url().asString()) << "\""
<< " type=\"" << type().asString() << "\""
- << " ttl_sec\"" << ttl() << "\"";
+ << " ttl_sec=\"" << ttl() << "\"";
if (content.empty())
str << "/>" << endl;