libzypp
10.5.0
|
00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef zypp_source_yum_PatchesFileReader_H 00013 #define zypp_source_yum_PatchesFileReader_H 00014 00015 #include "zypp/base/PtrTypes.h" 00016 #include "zypp/base/NonCopyable.h" 00017 #include "zypp/base/Function.h" 00018 00019 00020 namespace zypp 00021 { 00022 namespace parser 00023 { 00024 namespace yum 00025 { 00026 00027 00040 class PatchesFileReader : private base::NonCopyable 00041 { 00042 public: 00043 00049 typedef 00050 function<bool( const OnMediaLocation &, const std::string & )> 00051 ProcessResource; 00052 00053 00062 PatchesFileReader(const Pathname &patches_file, 00063 const ProcessResource & callback); 00064 00068 ~PatchesFileReader(); 00069 00070 private: 00071 class Impl; 00072 RW_pointer<Impl,rw_pointer::Scoped<Impl> > _pimpl; 00073 }; 00074 00075 00076 } // ns yum 00077 } // ns parser 00078 } // ns zypp 00079 00080 #endif /*zypp_source_yum_PatchesFileReader_H*/ 00081 00082 // vim: set ts=2 sts=2 sw=2 et ai: