00001 
00002 #ifndef Impala_Core_Array_MD5Hash_h
00003 #define Impala_Core_Array_MD5Hash_h
00004 
00005 #include "Link/Hash/MD5.h"
00006 
00007 namespace Impala
00008 {
00009 namespace Core
00010 {
00011 namespace Array
00012 {
00013 
00014 
00015 template<class ArrayT>
00016 inline std::string
00017 MD5Hash(ArrayT*& src)
00018 {
00019     hashwrapper *hw = new md5wrapper();
00020     std::string hash = hw->getHashFromData((unsigned char*)src->PB(),
00021                                     src->W()*src->H()*src->ElemSize());
00022     delete hw;
00023     return hash;
00024 
00025 }
00026 
00027 } 
00028 } 
00029 } 
00030 
00031 #endif