Md5Signature.cc
Go to the documentation of this file.
1 #include <iomanip>
2 #include <utl/Md5Signature.h>
3 
4 
5 using namespace std;
6 
7 
8 namespace utl {
9 
10  string
11  Md5Signature(const TabulatedFunction& tf, const unsigned int precision)
12  {
13  ostringstream os;
14  os << setprecision(precision) << "tf";
16  xIt != tf.XEnd(); ++xIt)
17  os << *xIt << 'x';
19  yIt != tf.YEnd(); ++yIt)
20  os << *yIt << 'y';
21  return Md5Sum(os.str()).GetHexDigest();
22  }
23 
24 
25  string
26  Md5Signature(const double d, const unsigned int precision)
27  {
28  ostringstream os;
29  os << setprecision(precision) << d;
30  return Md5Sum(os.str()).GetHexDigest();
31  }
32 
33 }
Class to compute MD5 checksum Based on the RSA C code, wrapped in an OO fashion.
Definition: Md5Sum.h:27
Array::const_iterator ArrayConstIterator
ArrayIterator XEnd()
end of array of X
Class to hold collection (x,y) points and provide interpolation between them.
static const double precision
string Md5Signature(const TabulatedFunction &tf, const unsigned int precision)
Definition: Md5Signature.cc:11
ArrayIterator YBegin()
begin of array of Y
ArrayIterator XBegin()
begin of array of X
ArrayIterator YEnd()
end of array of Y

, generated on Tue Sep 26 2023.