Mailinglist Archive: zypp-commit (233 mails)

< Previous Next >
[zypp-commit] <libzypp> ma-misc : Provide dumpOn for PoolQuery.
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Mon, 2 Nov 2009 22:02:31 +0100
  • Message-id: <E1N58D4-0001e4-QL@xxxxxxxxxxxxxxxx>
ref: refs/heads/ma-misc
commit 00032c04ce314a3ed7b21dcbed1ccbbc991b029b
Author: Michael Andres <ma@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages