libzypp 8.13.6
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef zypp_source_yum_RepoindexFileReader_H 00013 #define zypp_source_yum_RepoindexFileReader_H 00014 00015 #include "zypp/base/PtrTypes.h" 00016 #include "zypp/base/NonCopyable.h" 00017 #include "zypp/base/Function.h" 00018 #include "zypp/base/InputStream.h" 00019 #include "zypp/Pathname.h" 00020 00021 namespace zypp 00022 { 00023 class RepoInfo; 00024 00025 namespace parser 00026 { 00027 00043 class RepoindexFileReader : private base::NonCopyable 00044 { 00045 public: 00051 typedef function< bool( 00052 const RepoInfo & )> 00053 ProcessResource; 00054 00063 RepoindexFileReader( const zypp::Pathname & repoindexFile, 00064 const ProcessResource & callback); 00065 00074 RepoindexFileReader( const InputStream &is, 00075 const ProcessResource & callback ); 00076 00080 ~RepoindexFileReader(); 00081 00082 private: 00083 class Impl; 00084 RW_pointer<Impl,rw_pointer::Scoped<Impl> > _pimpl; 00085 }; 00086 00087 00088 } // ns parser 00089 } // ns zypp 00090 00091 #endif /*zypp_source_yum_RepoindexFileReader_H*/ 00092 00093 // vim: set ts=2 sts=2 sw=2 et ai: