return str;
}
- std::ostream & RepoInfo::dumpAsXMLOn( std::ostream & str) const
- { return dumpAsXMLOn(str, ""); }
-
- std::ostream & RepoInfo::dumpAsXMLOn( std::ostream & str, const std::string & content) const
+ std::ostream & RepoInfo::dumpAsXmlOn( std::ostream & str, const std::string & content ) const
{
string tmpstr;
str
/** Whether the repo license has to be accepted, e.g. there is no
* no acceptance needed for openSUSE.
- */
+ */
bool needToAcceptLicense() const;
-
+
/** Return the best license for the current (or a specified) locale. */
std::string getLicense( const Locale & lang_r = Locale() );
*/
virtual std::ostream & dumpAsIniOn( std::ostream & str ) const;
- /**
- * Write an XML representation of this RepoInfo object.
- */
- virtual std::ostream & dumpAsXMLOn(std::ostream & str) const;
-
/**
* Write an XML representation of this RepoInfo object.
*
* \param content this argument is ignored (used in other classed derived
* from RepoInfoBase.
*/
- virtual std::ostream & dumpAsXMLOn( std::ostream & str, const std::string & content ) const;
+ virtual std::ostream & dumpAsXmlOn( std::ostream & str, const std::string & content = "" ) const;
+
+ /** \deprecated Use camel cased dumpAsXmlOn */
+ ZYPP_DEPRECATED std::ostream & dumpAsXMLOn( std::ostream & str, const std::string & content = "" ) const { return dumpAsXmlOn( str, content ); }
class Impl;
private:
return str;
}
- std::ostream & ServiceInfo::dumpAsXMLOn(std::ostream & str) const
- { return dumpAsXMLOn(str, ""); }
-
- ostream & ServiceInfo::dumpAsXMLOn( ostream & str, const string & content) const
+ ostream & ServiceInfo::dumpAsXmlOn( ostream & str, const string & content ) const
{
str
<< "<service"
*/
virtual std::ostream & dumpAsIniOn( std::ostream & str ) const;
- /**
- * Write an XML representation of this ServiceInfo object.
- */
- virtual std::ostream & dumpAsXMLOn(std::ostream & str) const;
-
/**
* Write an XML representation of this ServiceInfo object.
*
* \param content if not empty, produces <service ...>content</service>
* otherwise <service .../>
*/
- virtual std::ostream & dumpAsXMLOn(
- std::ostream & str, const std::string & content) const;
+ virtual std::ostream & dumpAsXmlOn( std::ostream & str, const std::string & content = "" ) const;
+
+ /** \deprecated Use camel cased dumpAsXmlOn */
+ ZYPP_DEPRECATED std::ostream & dumpAsXMLOn( std::ostream & str, const std::string & content = "" ) const { return dumpAsXmlOn( str, content ); }
class Impl;
return str;
}
- std::ostream & RepoInfoBase::dumpAsXMLOn(std::ostream & str) const
- { return dumpAsXMLOn(str, ""); }
-
- std::ostream & RepoInfoBase::dumpAsXMLOn( std::ostream & str, const std::string & content) const
+ std::ostream & RepoInfoBase::dumpAsXmlOn( std::ostream & str, const std::string & content ) const
{
return str << "<!-- there's no XML representation of RepoInfoBase -->" << endl;
}
#include <iosfwd>
#include "zypp/base/PtrTypes.h"
-
+#include "zypp/APIConfig.h"
#include "zypp/Pathname.h"
///////////////////////////////////////////////////////////////////
*/
virtual std::ostream & dumpAsIniOn( std::ostream & str ) const;
- /**
- * Write an XML representation of this object. Implement in
- * derived classes.
- */
- virtual std::ostream & dumpAsXMLOn(std::ostream & str) const;
-
/**
* Write an XML representation of this object with content (if available).
*/
- virtual std::ostream & dumpAsXMLOn(
- std::ostream & str, const std::string & content) const;
+ virtual std::ostream & dumpAsXmlOn( std::ostream & str, const std::string & content = "" ) const;
+
+ /** \deprecated Use camel cased dumpAsXmlOn */
+ ZYPP_DEPRECATED std::ostream & dumpAsXMLOn( std::ostream & str, const std::string & content = "" ) const { return dumpAsXmlOn( str, content ); }
class Impl;
private:
}
- std::ostream & dumpAsXMLOn( std::ostream & str, const FileConflicts & obj )
+ std::ostream & dumpAsXmlOn( std::ostream & str, const FileConflicts & obj )
{
xmlout::Node guard( str, "fileconflicts", { "size", obj.size() } );
if ( ! obj.empty() )
{
*guard << "\n";
for ( const auto & el : obj )
- dumpAsXMLOn( *guard, el ) << "\n";
+ dumpAsXmlOn( *guard, el ) << "\n";
}
return str;
}
namespace
{
/// \todo
- std::ostream & dumpAsXMLHelper( std::ostream & str, const std::string & tag_r, IdString filename_r, IdString md5sum_r, Solvable solv_r )
+ std::ostream & dumpAsXmlHelper( std::ostream & str, const std::string & tag_r, IdString filename_r, IdString md5sum_r, Solvable solv_r )
{
xmlout::Node guard( str, tag_r );
*xmlout::Node( *guard, "file" ) << filename_r;
}
}
- std::ostream & dumpAsXMLOn( std::ostream & str, const FileConflicts::Conflict & obj )
+ std::ostream & dumpAsXmlOn( std::ostream & str, const FileConflicts::Conflict & obj )
{
xmlout::Node guard( str, "fileconflict" );
- dumpAsXMLHelper( *guard<<"\n", "lhs", obj.lhsFilename(), obj.lhsFilemd5(), obj.lhsSolvable() );
- dumpAsXMLHelper( *guard<<"\n", "rhs", obj.rhsFilename(), obj.rhsFilemd5(), obj.rhsSolvable() );
+ dumpAsXmlHelper( *guard<<"\n", "lhs", obj.lhsFilename(), obj.lhsFilemd5(), obj.lhsSolvable() );
+ dumpAsXmlHelper( *guard<<"\n", "rhs", obj.rhsFilename(), obj.rhsFilemd5(), obj.rhsSolvable() );
return str;
}
std::ostream & operator<<( std::ostream & str, const FileConflicts::Conflict & obj );
/** \relates FileConflicts XML output */
- std::ostream & dumpAsXMLOn( std::ostream & str, const FileConflicts & obj );
+ std::ostream & dumpAsXmlOn( std::ostream & str, const FileConflicts & obj );
/** \relates FileConflicts::Conflict XML output */
- std::ostream & dumpAsXMLOn( std::ostream & str, const FileConflicts::Conflict & obj );
+ std::ostream & dumpAsXmlOn( std::ostream & str, const FileConflicts::Conflict & obj );
/** \relates FileConflicts */
inline bool operator==( const FileConflicts & lhs, const FileConflicts & rhs )