Repository.cc

Go to the documentation of this file.
00001 #include <cassert>
00002 #include <iostream>
00003 
00004 #include "zypp/Repository.h"
00005 #include "zypp/repo/RepositoryImpl.h"
00006 
00007 using namespace std;
00008 
00010 namespace zypp
00011 { 
00012 
00013   const Repository Repository::noRepository;
00014 
00016   //
00017   //    METHOD NAME : Repository::Repository
00018   //    METHOD TYPE : Ctor
00019   //
00020   Repository::Repository()
00021   : _pimpl( Impl::nullimpl() )
00022   {}
00023 
00025   //
00026   //    METHOD NAME : Repository::Repository
00027   //    METHOD TYPE : Ctor
00028   //
00029   Repository::Repository( const Impl_Ptr & impl_r )
00030   : _pimpl( impl_r )
00031   {
00032     assert( impl_r );
00033   }
00034 
00036   //
00037   //    Forward to RepositoryImpl:
00038   //
00040 
00041   Repository::NumericId Repository::numericId() const
00042   { return _pimpl->numericId(); }
00043 
00044   const ResStore & Repository::resolvables() const
00045   {
00046     return _pimpl->resolvables();
00047   }
00048 
00049   const RepoInfo & Repository::info() const
00050   {
00051     return _pimpl->info();
00052   }
00053 
00054   const std::list<packagedelta::PatchRpm> &
00055   Repository::patchRpms() const
00056   {
00057     return _pimpl->patchRpms();
00058   }
00059 
00060   const std::list<packagedelta::DeltaRpm> &
00061   Repository::deltaRpms() const
00062   {
00063     return _pimpl->deltaRpms();
00064   }
00065 
00066   std::ostream & operator<<( std::ostream & str, const Repository & obj )
00067   {
00068     return str << "[" << obj.info().alias() << "]";
00069   }
00070 
00071   bool operator==( const Repository & lhs, const Repository & rhs )
00072   {
00073     return (lhs.info().alias() == rhs.info().alias());
00074   }
00075 
00076   bool operator<( const Repository & lhs, const Repository & rhs )
00077   {
00078     return (lhs.info().alias() < rhs.info().alias());
00079   }
00080 }
00081 

Generated on Tue Sep 25 19:23:06 2007 for libzypp by  doxygen 1.5.3