As described in Section 4.20, the Slice compilers can optionally generate checksums of Slice definitions. For
slice2cpp, the
‑‑checksum option causes the compiler to generate code in each C++ source file that accumulates checksums in a global map. A copy of this map can be obtained by calling a function defined in the header file
Ice/SliceChecksums.h:
In order to verify a server’s checksums, a client could simply compare the dictionaries using the equality operator. However, this is not feasible if it is possible that the server might be linked with more Slice definitions than the client. A more general solution is to iterate over the local checksums as demonstrated below: