ref: refs/heads/master
commit 00032c04ce314a3ed7b21dcbed1ccbbc991b029b
Author: Michael Andres
Date: Mon Nov 2 22:02:31 2009 +0100
Provide dumpOn for PoolQuery.
---
zypp/PoolQuery.cc | 3 +++
zypp/PoolQuery.h | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/zypp/PoolQuery.cc b/zypp/PoolQuery.cc
index e129598..3a49497 100644
--- a/zypp/PoolQuery.cc
+++ b/zypp/PoolQuery.cc
@@ -1337,6 +1337,9 @@ attremptycheckend:
ostream & operator<<( ostream & str, const PoolQuery & obj )
{ return str << obj.asString(); }
+ std::ostream & dumpOn( std::ostream & str, const PoolQuery & obj )
+ { return dumpRange( str << obj, obj.begin(), obj.end() ); }
+
bool PoolQuery::operator==( const PoolQuery & rhs ) const
{ return *_pimpl == *rhs._pimpl; }
diff --git a/zypp/PoolQuery.h b/zypp/PoolQuery.h
index ec974fd..968bd50 100644
--- a/zypp/PoolQuery.h
+++ b/zypp/PoolQuery.h
@@ -468,6 +468,9 @@ namespace zypp
/** \relates PoolQuery Stream output. */
std::ostream & operator<<( std::ostream & str, const PoolQuery & obj );
+ /** \relates PoolQuery Detailed stream output. */
+ std::ostream & dumpOn( std::ostream & str, const PoolQuery & obj );
+
///////////////////////////////////////////////////////////////////
namespace detail
{ /////////////////////////////////////////////////////////////////
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org