ARC SDK
FileCacheHash.h
1 // -*- indent-tabs-mode: nil -*-
2 
3 #ifndef FILE_CACHE_HASH_H_
4 #define FILE_CACHE_HASH_H_
5 
6 #include <string>
7 
8 namespace Arc {
9 
11 
17 
18 private:
20  static int MAX_MD5_LENGTH;
22  static int MAX_SHA1_LENGTH;
23 
24 public:
26  static std::string getHash(std::string url);
28  static int maxLength() {
29  return MAX_SHA1_LENGTH;
30  }
31 };
32 
33 } // namespace Arc
34 
35 #endif /*FILE_CACHE_HASH_H_*/