00001
00002
00003
00004
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( Resolvable::constPtr res_r )
00022 {
00023 if ( res_r )
00024 {
00025 *this = NVR( res_r->name(), res_r->edition() );
00026 }
00027 }
00028
00029
00030
00031
00032
00033
00034 std::ostream & operator<<( std::ostream & str, const NVR & obj )
00035 {
00036 return str << obj.name << '-' << obj.edition;
00037 }
00038
00040 }