ReplicaNet and RNLobby  1
Patcher.h
1 /* START_LICENSE_HEADER
2 
3 Copyright (C) 2000 Martin Piper, original design and program code
4 Copyright (C) 2001 Replica Software
5 
6 This program file is copyright (C) Replica Software and can only be used under license.
7 For more information visit: http://www.replicanet.com/
8 Or email: info@replicanet.com
9 
10 END_LICENSE_HEADER */
11 #include "RNPlatform/Inc/MemoryTracking.h"
12 #ifndef _PATCHER_H_
13 #define _PATCHER_H_
14 
15 namespace RNReplicaNet
16 {
17 
18 namespace RNLobby
19 {
20 
21 class PatcherPrivate;
22 
26 class Patcher
27 {
28 public:
29  Patcher();
30  virtual ~Patcher();
31 
38  int GeneratePatch(const char *sourcePath,const char *newPath,const char *patchPath,const size_t level = 5);
39 
45  bool PatchFile(const char *sourcePath,const char *patchPath,const char *destinationPath);
46 
49  virtual bool CallbackScanning(const size_t filePos,const size_t fileMax);
50 
51 private:
52  PatcherPrivate &mData;
53 };
54 
55 } // namespace RNLobby
56 
57 } // namespace RNReplicaNet
58 
59 #endif
int GeneratePatch(const char *sourcePath, const char *newPath, const char *patchPath, const size_t level=5)
bool PatchFile(const char *sourcePath, const char *patchPath, const char *destinationPath)
Definition: Patcher.h:26
virtual bool CallbackScanning(const size_t filePos, const size_t fileMax)