fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
Public Member Functions | Private Attributes | List of all members
WsjcppGeoIPResult Class Reference

#include <wsjcpp_geoip.h>

Public Member Functions

 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)
 
 WsjcppGeoIPResult (const std::string &sServiceName, const std::string &sIpAddress, const std::string &sErrorDescription)
 
bool hasError ()
 
std::string getServiceName ()
 
std::string getIpAddress ()
 
std::string getErrorDescription ()
 
std::string getCountry ()
 
std::string getRegionName ()
 
std::string getCity ()
 
double getLatitude ()
 
double getLongitude ()
 
nlohmann::json toJson ()
 

Private Attributes

std::string TAG
 
bool m_bHasError
 
std::string m_sServiceName
 
std::string m_sIpAddress
 
std::string m_sErrorDescription
 
std::string m_sCountry
 
std::string m_sRegionName
 
std::string m_sCity
 
double m_nLatitude
 
double m_nLongitude
 

Constructor & Destructor Documentation

◆ WsjcppGeoIPResult() [1/2]

WsjcppGeoIPResult::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 
)

◆ WsjcppGeoIPResult() [2/2]

WsjcppGeoIPResult::WsjcppGeoIPResult ( const std::string &  sServiceName,
const std::string &  sIpAddress,
const std::string &  sErrorDescription 
)

Member Function Documentation

◆ getCity()

std::string WsjcppGeoIPResult::getCity ( )

◆ getCountry()

std::string WsjcppGeoIPResult::getCountry ( )

◆ getErrorDescription()

std::string WsjcppGeoIPResult::getErrorDescription ( )

◆ getIpAddress()

std::string WsjcppGeoIPResult::getIpAddress ( )

◆ getLatitude()

double WsjcppGeoIPResult::getLatitude ( )

◆ getLongitude()

double WsjcppGeoIPResult::getLongitude ( )

◆ getRegionName()

std::string WsjcppGeoIPResult::getRegionName ( )

◆ getServiceName()

std::string WsjcppGeoIPResult::getServiceName ( )

◆ hasError()

bool WsjcppGeoIPResult::hasError ( )

◆ toJson()

nlohmann::json WsjcppGeoIPResult::toJson ( )

Member Data Documentation

◆ m_bHasError

bool WsjcppGeoIPResult::m_bHasError
private

◆ m_nLatitude

double WsjcppGeoIPResult::m_nLatitude
private

◆ m_nLongitude

double WsjcppGeoIPResult::m_nLongitude
private

◆ m_sCity

std::string WsjcppGeoIPResult::m_sCity
private

◆ m_sCountry

std::string WsjcppGeoIPResult::m_sCountry
private

◆ m_sErrorDescription

std::string WsjcppGeoIPResult::m_sErrorDescription
private

◆ m_sIpAddress

std::string WsjcppGeoIPResult::m_sIpAddress
private

◆ m_sRegionName

std::string WsjcppGeoIPResult::m_sRegionName
private

◆ m_sServiceName

std::string WsjcppGeoIPResult::m_sServiceName
private

◆ TAG

std::string WsjcppGeoIPResult::TAG
private

The documentation for this class was generated from the following files: