Example Source Code


Check Sum

The example source code is a standalone C++ example which has been re-used on several projects.

The code calculates Check Sums for communications protocols, for both generation for transmission and for checking upon reception.The class hierarchy provides a simple interface to instantiate the various types of Check Sum, to 'add' characters in to the Check Sum and to extract the 'Value' of the Check Sum.

The entire class is wrapped up into the 'Black Cat Developments' namespace, and only the constructors can throw exceptions. The class hierarchy depends on the definition of 'uint8' to mean 'Unsigned 8-bit Character'.

The Check Sums supported are:

Black Cat Developments Limited reserves its copyright over this source code, but any one is free to use the code, provided our copyright is acknowledged in any on-line or printed documentation.

Above all, while no warrantee can be implied nor is one offered when the source code is supplied free-of-charge, if any defects are found, please return the bug-fixed source code to us.

The source code is stored in a PC zip archive: Example Source


GED2WWW

This is not my source code, but I have modified it to make it work with the output from GSP Family Tree V1.5.