Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

MD5Hash.h

Go to the documentation of this file.
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 } // namespace Array
00028 } // namespace Core
00029 } // namespace Impala
00030 
00031 #endif

Generated on Fri Mar 19 09:30:49 2010 for ImpalaSrc by  doxygen 1.5.1