NVRA.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
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   **    FUNCTION NAME : operator<<
00034   **    FUNCTION TYPE : std::ostream &
00035   */
00036   std::ostream & operator<<( std::ostream & str, const NVRA & obj )
00037   {
00038     return str << obj.name << '-' << obj.edition << '.' << obj.arch;
00039   }
00040 
00042 } // namespace zypp

Generated on Thu Jul 6 00:07:21 2006 for zypp by  doxygen 1.4.6