libzypp  17.8.0
PoolQueryResult.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #include <iostream>
13 #include "zypp/base/LogTools.h"
14 
15 #include "zypp/PoolQueryResult.h"
16 
17 using std::endl;
18 
20 namespace zypp
21 {
22 
23  /******************************************************************
24  **
25  ** FUNCTION NAME : operator<<
26  ** FUNCTION TYPE : std::ostream &
27  */
28  std::ostream & operator<<( std::ostream & str, const PoolQueryResult & obj )
29  {
30  return dumpRange( str, obj.begin(), obj.end() );
31  }
32 
34 } // namespace zypp
std::ostream & dumpRange(std::ostream &str, TIterator begin, TIterator end, const std::string &intro="{", const std::string &pfx="\ ", const std::string &sep="\ ", const std::string &sfx="\, const std::string &extro="}")
Print range defined by iterators (multiline style).
Definition: LogTools.h:91
String related utilities and Regular expression matching.
const_iterator end() const
std::ostream & operator<<(std::ostream &str, const Exception &obj)
Definition: Exception.cc:147
const_iterator begin() const
Helper class to collect (not only) PoolQuery results.
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:1