00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PATCHER_H
00016 #define PATCHER_H
00017
00018 #include "pandabase.h"
00019
00020 #ifdef HAVE_OPENSSL
00021
00022 #include "filename.h"
00023 #include "buffer.h"
00024 #include "patchfile.h"
00025
00026
00027
00028
00029
00030 class EXPCL_PANDAEXPRESS Patcher {
00031 PUBLISHED:
00032 Patcher();
00033 Patcher(PT(Buffer) buffer);
00034 virtual ~Patcher();
00035
00036 int initiate(Filename &patch, Filename &infile);
00037 int run();
00038
00039 INLINE PN_stdfloat get_progress() const;
00040
00041 private:
00042 void init(PT(Buffer) buffer);
00043 PT(Buffer) _buffer;
00044 Patchfile *_patchfile;
00045 };
00046
00047 #include "patcher.I"
00048
00049 #endif // HAVE_OPENSSL
00050
00051 #endif