12 const std::string &sServiceName,
13 const std::string &sIpAddress,
14 const std::string &sCountry,
15 const std::string &sRegionName,
16 const std::string &sCity,
22 const std::string &sServiceName,
23 const std::string &sIpAddress,
24 const std::string &sErrorDescription
56 WsjcppGeoIPv4(
unsigned char c1,
unsigned char c2,
unsigned char c3,
unsigned char c4);
57 bool fromString(
const std::string &sIpAddress);
58 std::string toString();
65 unsigned char m_arrIP[4];
73 static WsjcppGeoIPResult parseResponseIpApiCom(
const std::string &sIpAddress,
const std::string &sJson);
74 static bool isIPv4InReservedRange(
const WsjcppGeoIPv4& ipV4, std::string &sError);
79 #endif // WSJCPP_GEOIP_H double getLatitude()
Definition: wsjcpp_geoip.cpp:105
std::string m_sErrorDescription
Definition: wsjcpp_geoip.h:42
bool m_bHasError
Definition: wsjcpp_geoip.h:39
std::string m_sIpAddress
Definition: wsjcpp_geoip.h:41
std::string m_sRegionName
Definition: wsjcpp_geoip.h:44
std::string TAG
Definition: wsjcpp_geoip.h:38
double m_nLatitude
Definition: wsjcpp_geoip.h:46
double getLongitude()
Definition: wsjcpp_geoip.cpp:114
std::string getIpAddress()
Definition: wsjcpp_geoip.cpp:63
std::string m_sServiceName
Definition: wsjcpp_geoip.h:40
std::string getCity()
Definition: wsjcpp_geoip.cpp:96
Definition: wsjcpp_geoip.h:8
bool hasError()
Definition: wsjcpp_geoip.cpp:51
std::string getRegionName()
Definition: wsjcpp_geoip.cpp:87
Definition: wsjcpp_geoip.h:70
double m_nLongitude
Definition: wsjcpp_geoip.h:47
std::string m_sCity
Definition: wsjcpp_geoip.h:45
WsjcppGeoIPResult(const std::string &sServiceName, const std::string &sIpAddress, const std::string &sCountry, const std::string &sRegionName, const std::string &sCity, double nLatitude, double nLongitude)
Definition: wsjcpp_geoip.cpp:9
nlohmann::json toJson()
Definition: wsjcpp_geoip.cpp:123
std::string getServiceName()
Definition: wsjcpp_geoip.cpp:57
std::string getErrorDescription()
Definition: wsjcpp_geoip.cpp:69
std::string m_sCountry
Definition: wsjcpp_geoip.h:43
Definition: wsjcpp_geoip.h:52
std::string getCountry()
Definition: wsjcpp_geoip.cpp:78