renamed YUM pattern's patternId -> name, name -> summary (to make it
[platform/upstream/libzypp.git] / zypp / Pattern.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/Pattern.cc
10  *
11 */
12 #include <iostream>
13
14 #include "zypp/Pattern.h"
15
16 using namespace std;
17
18 ///////////////////////////////////////////////////////////////////
19 namespace zypp
20 { /////////////////////////////////////////////////////////////////
21
22   ///////////////////////////////////////////////////////////////////
23   //
24   //    METHOD NAME : Pattern::Pattern
25   //    METHOD TYPE : Ctor
26   //
27   Pattern::Pattern( const NVRAD & nvrad_r )
28   : ResObject( TraitsType::kind, nvrad_r )
29   {}
30
31   ///////////////////////////////////////////////////////////////////
32   //
33   //    METHOD NAME : Pattern::~Pattern
34   //    METHOD TYPE : Dtor
35   //
36   Pattern::~Pattern()
37   {}
38
39   ///////////////////////////////////////////////////////////////////
40   //
41   //    Pattern interface forwarded to implementation
42   //
43   ///////////////////////////////////////////////////////////////////
44   /** */
45   bool Pattern::isDefault() const
46   { return pimpl().isDefault(); }
47   /** */
48   bool Pattern::userVisible() const
49   { return pimpl().userVisible(); }
50   /** */
51   std::string Pattern::category() const
52   { return pimpl().category(); }
53   /** */
54   Pathname Pattern::icon() const
55   { return pimpl().icon(); }
56   /** */
57   Pathname Pattern::script() const
58   { return pimpl().script(); }
59
60
61   /////////////////////////////////////////////////////////////////
62 } // namespace zypp
63 ///////////////////////////////////////////////////////////////////