- Create the cache directly from the schema (installed) file.
[platform/upstream/libzypp.git] / zypp / NVRAD.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/NVRAD.cc
10  *
11 */
12
13 #include "zypp/NVRAD.h"
14 #include "zypp/Resolvable.h"
15
16 ///////////////////////////////////////////////////////////////////
17 namespace zypp
18 { /////////////////////////////////////////////////////////////////
19
20   NVRAD::NVRAD( Resolvable::constPtr res_r )
21   {
22     if ( res_r )
23       {
24           *this = NVRAD( res_r->name(), res_r->edition(), res_r->arch(),
25                          res_r->deps() );
26       }
27   }
28
29   std::ostream & operator<<( std::ostream & str, const NVRAD & obj )
30   {
31     return str << obj.name << '-' << obj.edition << '.' << obj.arch;
32   }
33   
34   /////////////////////////////////////////////////////////////////
35 } // namespace zypp
36 ///////////////////////////////////////////////////////////////////