1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
14 #include "zypp/NVRA.h"
15 #include "zypp/Resolvable.h"
19 ///////////////////////////////////////////////////////////////////
21 { /////////////////////////////////////////////////////////////////
23 NVRA::NVRA( Resolvable::constPtr res_r )
27 *this = NVRA( res_r->name(), res_r->edition(), res_r->arch() );
31 /******************************************************************
33 ** FUNCTION NAME : operator<<
34 ** FUNCTION TYPE : std::ostream &
36 std::ostream & operator<<( std::ostream & str, const NVRA & obj )
38 return str << obj.name << '-' << obj.edition << '.' << obj.arch;
41 /////////////////////////////////////////////////////////////////
43 ///////////////////////////////////////////////////////////////////