libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #include <iostream> 00013 //#include "zypp/base/Logger.h" 00014 00015 #include "zypp/pool/PoolStats.h" 00016 00017 using std::endl; 00018 00020 namespace zypp 00021 { 00022 00023 namespace pool 00024 { 00025 00026 /****************************************************************** 00027 ** 00028 ** FUNCTION NAME : operator<< 00029 ** FUNCTION TYPE : std::ostream & 00030 */ 00031 std::ostream & operator<<( std::ostream & str, const PoolStats & obj ) 00032 { 00033 str << "ResObjects: " << obj._total; 00034 for( PoolStats::KindMap::const_iterator it = obj._perKind.begin(); it != obj._perKind.end(); ++it ) 00035 { 00036 str << endl << " " << it->first << ":\t" << it->second; 00037 } 00038 return str; 00039 } 00040 00042 } // namespace pool 00045 } // namespace zypp