Author: schubi2 Date: Wed Jan 23 17:38:48 2008 New Revision: 8349 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8349&view=rev Log: added template for CapabilitySet Modified: branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.cc branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.h branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.cc branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.h Modified: branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.cc?rev=8349&r1=8348&r2=8349&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.cc Wed Jan 23 17:38:48 2008 @@ -120,6 +120,21 @@ } template<> +std::string helixXML( const CapabilitySet &caps ) +{ + stringstream str; + CapabilitySet::const_iterator it = caps.begin(); + str << endl; + for ( ; it != caps.end(); ++it) + { + str << TAB2 << helixXML((*it)); + } + str << TAB; + return str.str(); +} + + +template<> std::string helixXML( const Dependencies &dep ) { stringstream str; Modified: branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.h?rev=8349&r1=8348&r2=8349&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.h (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/solver/detail/Testcase.h Wed Jan 23 17:38:48 2008 @@ -49,6 +49,9 @@ std::string helixXML( const Capabilities &caps ); template<> +std::string helixXML( const CapabilitySet &caps ); + +template<> std::string helixXML( const Dependencies &dep ); template<> Modified: branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.cc URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.cc?rev=8349&r1=8348&r2=8349&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.cc (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.cc Wed Jan 23 17:38:48 2008 @@ -143,6 +143,18 @@ } template<> +string toXML( const CapabilitySet &caps ) +{ + stringstream out; + CapabilitySet::const_iterator it = caps.begin(); + for ( ; it != caps.end(); ++it) + { + out << toXML((*it)); + } + return out.str(); +} + +template<> string toXML( const Dependencies &dep ) { stringstream out; Modified: branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.h URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.h?rev=8349&r1=8348&r2=8349&view=diff ============================================================================== --- branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.h (original) +++ branches/tmp/ma/jump_sat/libzypp/zypp/target/store/serialize.h Wed Jan 23 17:38:48 2008 @@ -55,6 +55,9 @@ std::string toXML( const Capabilities &caps ); template<> +std::string toXML( const CapabilitySet &caps ); + +template<> std::string toXML( const Dependencies &dep ); /** -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org