libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef zypp_source_yum_RepomdFileReader_H 00013 #define zypp_source_yum_RepomdFileReader_H 00014 00015 #include "zypp/base/PtrTypes.h" 00016 #include "zypp/base/NonCopyable.h" 00017 #include "zypp/base/Function.h" 00018 00019 #include "zypp/OnMediaLocation.h" 00020 #include "zypp/repo/yum/ResourceType.h" 00021 00022 namespace zypp 00023 { 00024 namespace parser 00025 { 00026 namespace yum 00027 { 00028 00029 00046 class RepomdFileReader : private base::NonCopyable 00047 { 00048 public: 00054 typedef function< bool( 00055 const OnMediaLocation &, 00056 const repo::yum::ResourceType &)> 00057 ProcessResource; 00058 00067 RepomdFileReader( 00068 const Pathname & repomd_file, const ProcessResource & callback); 00069 00073 ~RepomdFileReader(); 00074 00075 private: 00076 class Impl; 00077 RW_pointer<Impl,rw_pointer::Scoped<Impl> > _pimpl; 00078 }; 00079 00080 00081 } // ns yum 00082 } // ns parser 00083 } // ns zypp 00084 00085 #endif /*zypp_source_yum_RepomdFileReader_H*/ 00086 00087 // vim: set ts=2 sts=2 sw=2 et ai: