00001
00005 #ifndef dkutil_c_Hash
00006 #define dkutil_c_Hash
00007
00008 #include "dkcOSIndependent.h"
00009 #include "st.h"
00010 #include "dkcSHA.h"
00011 #include "dkcMD5.h"
00012
00013 #if 0//defined(__cplusplus)
00014
00015 namespace dkutil{
00016
00018 class map_st{
00019 st_table *mM;
00020 public:
00021 map_st(){
00022 mM = st_init_strtable();
00023 }
00024 bool reset(){
00025 clear();
00026 mM = st_init_strtable();
00027 }
00028 bool insert(const char *key,const char *data){
00029
00030 }
00031 void clear(){
00032 if(mM){
00033 st_free_table(mM);
00034 }
00035 }
00036 bool lookup(const char *key,char *buff,size_t size){
00037 st_lookup(m, key, &buff);
00038 }
00039
00040
00041 };
00042
00043
00044
00045 }
00046
00047
00048 #endif
00049
00050 #endif //end of include once