libzypp  11.13.5
ZYpp.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
12 #include <iostream>
13 #include "zypp/base/Logger.h"
14 
15 #include "zypp/ZYpp.h"
17 #include "zypp/sat/Pool.h"
18 
19 using std::endl;
20 
22 namespace zypp
23 {
24 
26  //
27  // METHOD NAME : ZYpp::ZYpp
28  // METHOD TYPE : Ctor
29  //
30  ZYpp::ZYpp( const Impl_Ptr & impl_r )
31  : _pimpl( impl_r )
32  {}
33 
35  //
36  // METHOD NAME : ZYpp::~ZYpp
37  // METHOD TYPE : Dtor
38  //
40  {}
41 
43  //
44  // METHOD NAME : ZYpp::dumpOn
45  // METHOD TYPE : std::ostream &
46  //
47  std::ostream & ZYpp::dumpOn( std::ostream & str ) const
48  {
49  return str << *_pimpl;
50  }
51 
53  //
54  // Forward to Impl:
55  //
57 
59  { return _pimpl->pool(); }
60 
62  { return _pimpl->diskUsage(); }
63 
65  { return _pimpl->setPartitions(mp); }
66 
68  { return _pimpl->getPartitions(); }
69 
71  { return _pimpl->poolProxy(); }
72 
73  Resolver_Ptr ZYpp::resolver() const
74  { return _pimpl->resolver(); }
75 
76  KeyRing_Ptr ZYpp::keyRing() const
77  { return _pimpl->keyRing(); }
78 
80  //
81  // Forward to Impl:
82  //
84 
85  Target_Ptr ZYpp::target() const
86  { return _pimpl->target(); }
87 
88  Target_Ptr ZYpp::getTarget() const
89  { return _pimpl->getTarget(); }
90 
91  void ZYpp::initializeTarget( const Pathname & root, bool doRebuild_r )
92  { _pimpl->initializeTarget( root, doRebuild_r ); }
93 
95  { _pimpl->finishTarget(); }
96 
98  { return _pimpl->commit( policy_r ); }
99 
100  void ZYpp::installSrcPackage( const SrcPackage_constPtr & srcPackage_r )
101  { _pimpl->installSrcPackage( srcPackage_r ); }
102 
104 
105  void ZYpp::setRequestedLocales( const LocaleSet & locales_r )
106  { sat::Pool::instance().setRequestedLocales( locales_r ); }
107 
110 
113 
114 
115  Pathname ZYpp::homePath() const
116  { return _pimpl->homePath(); }
117 
118  Pathname ZYpp::tmpPath() const
119  { return _pimpl->tmpPath(); }
120 
121  void ZYpp::setHomePath( const Pathname & path )
122  { _pimpl->setHomePath(path); }
123 
125 } // namespace zypp