PatchFileReader.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef PATCHFILEREADER_H_
00013 #define PATCHFILEREADER_H_
00014 
00015 #include "zypp/base/Function.h"
00016 #include "zypp/parser/yum/FileReaderBase.h"
00017 
00018 namespace zypp
00019 {
00020 
00021   namespace data
00022   {
00023     class Patch;
00024     DEFINE_PTR_TYPE(Patch);
00025   } // ns data
00026 
00027 
00028   namespace parser
00029   {
00030     namespace yum
00031     {
00032 
00033 
00041   class PatchFileReader : FileReaderBase
00042   {
00043   public:
00044 
00049     typedef function<bool(const data::Patch_Ptr &)> ProcessPatch;
00050 
00057     PatchFileReader(const Pathname & patch_file, ProcessPatch callback);
00058 
00062     ~PatchFileReader();
00063 
00064   private:
00065     class Impl;
00066     RW_pointer<Impl,rw_pointer::Scoped<Impl> > _pimpl;
00067   };
00068 
00069 
00070     } // ns yum
00071   } // ns parser
00072 } // ns zypp
00073 
00074 #endif /*PATCHFILEREADER_H_*/

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