#ifndef _utl_Md5Signature_h_ #define _utl_Md5Signature_h_ // $Id$ #include #include #include #include namespace utl { namespace { template inline std::string Md5SignatureFromSStream(const T& d) { std::ostringstream os; os << d; return utl::Md5Sum(os.str()).GetHexDigest(); } } std::string Md5Signature(const TabulatedFunction& tf, const unsigned int precision = 6); std::string Md5Signature(const double d, const unsigned int precision = 6); inline std::string Md5Signature(const bool b) { return Md5SignatureFromSStream(b); } inline std::string Md5Signature(const int i) { return Md5SignatureFromSStream(i); } } #endif