Back to index

nordugrid-arc-nox  1.1.0~rc6
FileCacheHash.h
Go to the documentation of this file.
00001 // -*- indent-tabs-mode: nil -*-
00002 
00003 #ifndef FILE_CACHE_HASH_H_
00004 #define FILE_CACHE_HASH_H_
00005 
00006 #include <string>
00007 
00012 class FileCacheHash {
00013 
00014 private:
00018   static int MAX_MD5_LENGTH;
00022   static int MAX_SHA1_LENGTH;
00023 
00024 public:
00028   static std::string getHash(std::string url);
00032   static int maxLength() {
00033     return MAX_SHA1_LENGTH;
00034   }
00035 };
00036 
00037 #endif /*FILE_CACHE_HASH_H_*/