1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/zypp_detail/ZYppImpl.cc
13 //#include "zypp/base/Logger.h"
15 #include "zypp/zypp_detail/ZYppImpl.h"
19 ///////////////////////////////////////////////////////////////////
21 { /////////////////////////////////////////////////////////////////
22 ///////////////////////////////////////////////////////////////////
24 { /////////////////////////////////////////////////////////////////
26 ///////////////////////////////////////////////////////////////////
28 // METHOD NAME : ZYppImpl::ZYppImpl
29 // METHOD TYPE : Constructor
33 , _sourceFeed( _pool )
37 ///////////////////////////////////////////////////////////////////
39 // METHOD NAME : ZYppImpl::~ZYppImpl
40 // METHOD TYPE : Destructor
46 void ZYppImpl::addResolvables (const ResStore& store, bool installed)
48 _pool.insert(store.begin(), store.end(), installed);
51 void ZYppImpl::removeResolvables (const ResStore& store)
53 for (ResStore::iterator it = store.begin(); it != store.end(); it++)
59 Target_Ptr ZYppImpl::target() const
62 ZYPP_THROW(Exception("Target not initialized."));
66 void ZYppImpl::initTarget(const Pathname & root)
69 _target = Target_Ptr();
70 #warning FIXME does this release the memory? _target is intrusive_ptr<Target>. Once more below...
71 _target = new Target(root);
74 void ZYppImpl::finishTarget()
81 /******************************************************************
83 ** FUNCTION NAME : operator<<
84 ** FUNCTION TYPE : std::ostream &
86 std::ostream & operator<<( std::ostream & str, const ZYppImpl & obj )
88 return str << "ZYppImpl";
91 /////////////////////////////////////////////////////////////////
92 } // namespace zypp_detail
93 ///////////////////////////////////////////////////////////////////
94 /////////////////////////////////////////////////////////////////
96 ///////////////////////////////////////////////////////////////////