Main Page | Class List | Directories | File List | Class Members

RNReplicaNet::RNLobby::Patcher Class Reference

#include <Patcher.h>

List of all members.

Public Member Functions

int GeneratePatch (const char *sourcePath, const char *newPath, const char *patchPath)
bool PatchFile (const char *sourcePath, const char *patchPath, const char *destinationPath)


Detailed Description

This class generates minimal patches for binary files and also patches files to produce new versions. No checking of file integrity is carried out before a patch is applied because this is a file version problem which is the domain of another set of support classes.


Member Function Documentation

int RNReplicaNet::RNLobby::Patcher::GeneratePatch const char *  sourcePath,
const char *  newPath,
const char *  patchPath
 

Generates a patch from sourcePath compared with newPath and stores the result in patchPath.

Parameters:
sourcePath The original file path.
newPath The new file path.
patchPath The destination file path for the patch file.
Returns:
The length of the generated patch file. This can be zero and indicates the two files are identical. A negative value indicates an error occured.

bool RNReplicaNet::RNLobby::Patcher::PatchFile const char *  sourcePath,
const char *  patchPath,
const char *  destinationPath
 

Combines a file from sourcePath with a patch file from patchPath and stores the resultant file in destinationPath.

Parameters:
sourcePath The original file path.
patchPath The patch file path.
destinationPath The destination file path for the combined file.
Returns:
Success returns true. False indicates an error occurred.


The documentation for this class was generated from the following file:
Generated on Sun Oct 30 01:12:44 2005 for RNLobby by  doxygen 1.4.1