#ifdef SWIGPERL5 #else %template(UrlSet) std::list; #endif namespace zypp { namespace repo { %ignore operator==; %ignore operator!=; %ignore operator<<; %ignore operator<; } typedef std::list UrlSet; } %ignore zypp::repo::RepoInfoBase::dumpOn(std::ostream &) const; %ignore zypp::repo::RepoInfoBase::dumpAsIniOn(std::ostream &) const; %ignore zypp::repo::RepoInfoBase::dumpAsXmlOn(std::ostream &) const; %include // This is due to a typo in libzypp < 5.4.0 %ignore zypp::RepoInfo::defaultPrioity(); %ignore zypp::RepoInfo::dumpOn(std::ostream &) const; %ignore zypp::RepoInfo::dumpAsIniOn(std::ostream &) const; %ignore zypp::RepoInfo::dumpAsXmlOn(std::ostream &) const; %include typedef std::list RepoInfoList; %template(RepoInfoList) std::list; %extend zypp::RepoInfo { std::string dump(void) const { std::ostringstream str; self->dumpOn(str); return str.str(); } std::string dumpAsIni(void) const { std::ostringstream str; self->dumpAsIniOn(str); return str.str(); } std::string dumpAsXML(void) const { std::ostringstream str; self->dumpAsXmlOn(str); return str.str(); } }