- Added helper struct NVR (name,edition(version,relase))
[platform/upstream/libzypp.git] / zypp / NVR.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/NVR.cc
10  *
11 */
12 #include <iostream>
13
14 #include "zypp/NVR.h"
15
16 ///////////////////////////////////////////////////////////////////
17 namespace zypp
18 { /////////////////////////////////////////////////////////////////
19
20   /******************************************************************
21   **
22   **    FUNCTION NAME : operator<<
23   **    FUNCTION TYPE : std::ostream &
24   */
25   std::ostream & operator<<( std::ostream & str, const NVR & obj )
26   {
27     return str << obj.name << '-' << obj.edition;
28   }
29
30   /////////////////////////////////////////////////////////////////
31 } // namespace zypp
32 ///////////////////////////////////////////////////////////////////