- Create the cache directly from the schema (installed) file.
[platform/upstream/libzypp.git] / zypp / Selection.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/Selection.cc
10  *
11 */
12 #include <iostream>
13
14 #include "zypp/Selection.h"
15 #include "zypp/TranslatedText.h"
16
17 using namespace std;
18
19 ///////////////////////////////////////////////////////////////////
20 namespace zypp
21 { /////////////////////////////////////////////////////////////////
22
23   IMPL_PTR_TYPE(Selection);
24
25   ///////////////////////////////////////////////////////////////////
26   //
27   //    METHOD NAME : Selection::Selection
28   //    METHOD TYPE : Ctor
29   //
30   Selection::Selection( const NVRAD & nvrad_r )
31   : ResObject( TraitsType::kind, nvrad_r )
32   {}
33
34   ///////////////////////////////////////////////////////////////////
35   //
36   //    METHOD NAME : Selection::~Selection
37   //    METHOD TYPE : Dtor
38   //
39   Selection::~Selection()
40   {}
41
42   ///////////////////////////////////////////////////////////////////
43   //
44   //    Selection interface forwarded to implementation
45   //
46   ///////////////////////////////////////////////////////////////////
47
48     /** selection category */
49     Label Selection::category() const
50     {
51         return pimpl().category();
52     }
53
54     /** selection visibility (for hidden selections) */
55     bool Selection::visible() const
56     {
57         return pimpl().visible();
58     }
59
60     /** selection presentation order */
61     Label Selection::order() const
62     {
63         return pimpl().order();
64     }
65
66     const std::set<std::string> Selection::install_packages( const Locale & lang) const
67     {
68       return pimpl().install_packages();
69     }
70
71   /////////////////////////////////////////////////////////////////
72 } // namespace zypp
73 ///////////////////////////////////////////////////////////////////