key.h

00001 #ifndef _DHT_KEY_H_
00002 #define _DHT_KEY_H_
00003 
00004 #include "store_data.h"
00005 
00006 namespace dht {
00019     class key : public store_data {
00020     public:
00026         inline key();
00027         // inline key(bool aht); //  = true);
00034         inline key(const void *data, size_t len, bool aht = true);
00040         inline key(const char   *str, bool aht = true);
00046         inline key(const std::string &str, bool aht = true);
00047         virtual ~key();
00048     };
00049 
00050     inline key::key() 
00051         : store_data(true) {}   
00052 
00053 /*  inline key::key(bool aht) 
00054         : store_data(aht) {
00055         ACE_DEBUG((LM_DEBUG, "key::constructor aht\n"));
00056         }   */
00057     inline key::key(const void *data, size_t len, bool aht) 
00058         : store_data(data, len, aht) {}
00059 
00060     inline key::key(const char *str, bool aht) 
00061         : store_data(str, aht) {}
00062 
00063     inline key::key(const std::string &str, bool aht) 
00064         : store_data(str, aht) {}
00065 
00066 }
00067 
00068 #endif //_KEY_H_

Generated on Thu Mar 1 16:18:47 2007 for libdht by  doxygen 1.5.1