Panda3D
 All Classes Functions Variables Enumerations
patcher.h
00001 // Filename: patcher.h
00002 // Created by:  mike (09Jan97)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
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 //       Class : Patcher
00028 // Description : Applies a patch synchronously
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
 All Classes Functions Variables Enumerations