00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #include <iostream> 00013 00014 #include "zypp/NVR.h" 00015 #include "zypp/Resolvable.h" 00016 00018 namespace zypp 00019 { 00020 00021 NVR::NVR( ResTraits<Resolvable>::constPtrType res_r ) 00022 { 00023 if ( res_r ) 00024 { 00025 *this = NVR( res_r->name(), res_r->edition() ); 00026 } 00027 } 00028 00029 /****************************************************************** 00030 ** 00031 ** FUNCTION NAME : operator<< 00032 ** FUNCTION TYPE : std::ostream & 00033 */ 00034 std::ostream & operator<<( std::ostream & str, const NVR & obj ) 00035 { 00036 return str << obj.name << '-' << obj.edition; 00037 } 00038 00040 } // namespace zypp
1.5.3