00001
00002
00003
00004
00005
00006
00007
00008
00012 #include <iostream>
00013
00014 #include "zypp/NVRA.h"
00015 #include "zypp/Resolvable.h"
00016
00017 using std::endl;
00018
00020 namespace zypp
00021 {
00022
00023 NVRA::NVRA( Resolvable::constPtr res_r )
00024 {
00025 if ( res_r )
00026 {
00027 *this = NVRA( res_r->name(), res_r->edition(), res_r->arch() );
00028 }
00029 }
00030
00031
00032
00033
00034
00035
00036 std::ostream & operator<<( std::ostream & str, const NVRA & obj )
00037 {
00038 return str << obj.name << '-' << obj.edition << '.' << obj.arch;
00039 }
00040
00042 }