1 #ifndef _IOTADDRESS_HPP__
2 #define _IOTADDRESS_HPP__
8 // IoTAddress class for iotruntime
9 // Implemented based on IoTAddress.java that is used to wrap address
11 // @author Rahmadi Trimananda <rahmadi.trimananda @ uci.edu>
20 IoTAddress(string _sAddress) {
22 inetAddress = _sAddress;
41 string getURL(string strURLComplete) {
43 return "http://" + inetAddress + strURLComplete;
47 // Custom hasher for IoTAddress / IoTDeviceAddress iterator
48 size_t hash(IoTAddress const& devAddress) const {
50 std::hash<std::string> hashVal;
51 return hashVal(inetAddress);
55 // IoTAddress class properties