- Create the cache directly from the schema (installed) file.
[platform/upstream/libzypp.git] / zypp / ResStore.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/ResStore.cc
10  *
11 */
12 #include <iostream>
13 //#include "zypp/base/Logger.h"
14
15 #include "zypp/ResStore.h"
16
17 using std::endl;
18
19 ///////////////////////////////////////////////////////////////////
20 namespace zypp
21 { /////////////////////////////////////////////////////////////////
22
23   ///////////////////////////////////////////////////////////////////
24   //
25   //    CLASS NAME : ResStore::Impl
26   //
27   /** ResStore implementation. */
28   struct ResStore::Impl
29   {
30     Impl()
31     {}
32 #if 0
33     iterator begin()
34     { return _store.begin(); }
35
36     iterator end();
37     { return _store.end(); }
38
39     const_iterator begin() const;
40     { return _store.begin(); }
41
42     const_iterator end() const;
43     { return _store.end(); }
44
45     StorageT _store;
46 #endif
47   };
48   ///////////////////////////////////////////////////////////////////
49
50   /** \relates ResStore::Impl Stream output */
51   inline std::ostream & operator<<( std::ostream & str, const ResStore::Impl & obj )
52   {
53     return str << "ResStore::Impl";
54   }
55
56   ///////////////////////////////////////////////////////////////////
57   //
58   //    CLASS NAME : ResStore
59   //
60   ///////////////////////////////////////////////////////////////////
61
62   ///////////////////////////////////////////////////////////////////
63   //
64   //    METHOD NAME : ResStore::ResStore
65   //    METHOD TYPE : Ctor
66   //
67   ResStore::ResStore()
68   //: _pimpl( new Impl )
69   {}
70
71   ///////////////////////////////////////////////////////////////////
72   //
73   //    METHOD NAME : ResStore::~ResStore
74   //    METHOD TYPE : Dtor
75   //
76   ResStore::~ResStore()
77   {}
78 #if 0
79   ResStore::iterator ResStore::begin()
80   { return _pimpl->begin(); }
81
82   ResStore::iterator ResStore::end();
83   { return _pimpl->end(); }
84
85   ResStore::const_iterator ResStore::begin() const;
86   { return _pimpl->begin(); }
87
88   ResStore::const_iterator ResStore::end() const;
89   { return _pimpl->end(); }
90 #endif
91   /******************************************************************
92   **
93   **    FUNCTION NAME : operator<<
94   **    FUNCTION TYPE : std::ostream &
95   */
96   std::ostream & operator<<( std::ostream & str, const ResStore & obj )
97   {
98     return str << "ResStore: " << obj.size();
99   }
100
101   /////////////////////////////////////////////////////////////////
102 } // namespace zypp
103 ///////////////////////////////////////////////////////////////////