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