Panda3D
 All Classes Functions Variables Enumerations
patcher.h
1 // Filename: patcher.h
2 // Created by: mike (09Jan97)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PATCHER_H
16 #define PATCHER_H
17 
18 #include "pandabase.h"
19 
20 #ifdef HAVE_OPENSSL
21 
22 #include "filename.h"
23 #include "buffer.h"
24 #include "patchfile.h"
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : Patcher
28 // Description : Applies a patch synchronously
29 ////////////////////////////////////////////////////////////////////
30 class EXPCL_PANDAEXPRESS Patcher {
31 PUBLISHED:
32  Patcher();
33  Patcher(PT(Buffer) buffer);
34  virtual ~Patcher();
35 
36  int initiate(Filename &patch, Filename &infile);
37  int run();
38 
39  INLINE PN_stdfloat get_progress() const;
40 
41 private:
42  void init(PT(Buffer) buffer);
43  PT(Buffer) _buffer;
44  Patchfile *_patchfile;
45 };
46 
47 #include "patcher.I"
48 
49 #endif // HAVE_OPENSSL
50 
51 #endif
Definition: buffer.h:26
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44