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
35 ///////////////////////////////////////////////////////////////////
37 // METHOD NAME : ZYppImpl::~ZYppImpl
38 // METHOD TYPE : Destructor
44 void ZYppImpl::addResolvables (const ResStore& store)
46 _pool.insert(store.begin(), store.end());
49 void ZYppImpl::removeResolvables (const ResStore& store)
51 for (ResStore::iterator it = store.begin(); it != store.end(); it++)
57 Target_Ptr ZYppImpl::target() const
60 ZYPP_THROW(Exception("Target not initialized."));
64 void ZYppImpl::initTarget(const Pathname & root)
67 _target = Target_Ptr();
68 #warning FIXME does this release the memory? _target is intrusive_ptr<Target>. Once more below...
69 _target = new Target(root);
72 void ZYppImpl::finishTarget()
79 /******************************************************************
81 ** FUNCTION NAME : operator<<
82 ** FUNCTION TYPE : std::ostream &
84 std::ostream & operator<<( std::ostream & str, const ZYppImpl & obj )
86 return str << "ZYppImpl";
89 /////////////////////////////////////////////////////////////////
90 } // namespace zypp_detail
91 ///////////////////////////////////////////////////////////////////
92 /////////////////////////////////////////////////////////////////
94 ///////////////////////////////////////////////////////////////////