diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-07-02 01:14:00 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-07-02 01:14:00 +0000 |
commit | c11d0fed2d828d3a23c895328843bda33a4fa71c (patch) | |
tree | 68a9538afa133c126852af348621b05eaa4d7257 /cpp/src/Ice/SliceChecksum.cpp | |
parent | winsock2.h is now included (diff) | |
download | ice-c11d0fed2d828d3a23c895328843bda33a4fa71c.tar.bz2 ice-c11d0fed2d828d3a23c895328843bda33a4fa71c.tar.xz ice-c11d0fed2d828d3a23c895328843bda33a4fa71c.zip |
Slice checksum changes
Diffstat (limited to 'cpp/src/Ice/SliceChecksum.cpp')
-rw-r--r-- | cpp/src/Ice/SliceChecksum.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cpp/src/Ice/SliceChecksum.cpp b/cpp/src/Ice/SliceChecksum.cpp new file mode 100644 index 00000000000..5bea25c9c18 --- /dev/null +++ b/cpp/src/Ice/SliceChecksum.cpp @@ -0,0 +1,24 @@ +// ********************************************************************** +// +// Copyright (c) 2003-2004 ZeroC, Inc. All rights reserved. +// +// This copy of Ice is licensed to you under the terms described in the +// ICE_LICENSE file included in this distribution. +// +// ********************************************************************** + +#include <Ice/SliceChecksum.h> + +using namespace std; +using namespace Ice; + +const SliceChecksumDict Ice::sliceChecksums; + +IceInternal::SliceChecksumInit::SliceChecksumInit(const char* checksums[]) +{ + SliceChecksumDict& map = const_cast<SliceChecksumDict&>(sliceChecksums); + for(int i = 0; checksums[i] != 0; i += 2) + { + map.insert(SliceChecksumDict::value_type(checksums[i], checksums[i + 1])); + } +} |