Main Page | Class List | File List | Class Members | File Members

GeoIPWrapper Class Reference

#include <GeoIPWrapper.h>

List of all members.

Public Member Functions

 GeoIPWrapper (char *filename, int flags)
 GeoIPWrapper (int flags)
 ~GeoIPWrapper ()
const char * getCountryCodeByName (const char *host) const
const char * getCountryCodeByAddr (const char *addr) const
const char * getCountryCode3ByName (const char *host) const
const char * getCountryCode3ByAddr (const char *addr) const
const char * getCountryNameByName (const char *host) const
const char * getCountryNameByAddr (const char *addr) const
int getIdByName (const char *host) const
int getIdByAddr (const char *addr) const

Static Public Member Functions

static const char * idToCountryCode (int countryId)
static const char * idToCountryCode3 (int countryId)
static const char * idToCountryName (int countryId)

Private Attributes

GeoIPm_gi


Detailed Description

Definition at line 26 of file GeoIPWrapper.h.


Constructor & Destructor Documentation

GeoIPWrapper::GeoIPWrapper char *  filename,
int  flags
 

Definition at line 22 of file GeoIPWrapper.cpp.

References GeoIP_open(), and m_gi.

GeoIPWrapper::GeoIPWrapper int  flags  ) 
 

Definition at line 27 of file GeoIPWrapper.cpp.

References GeoIP_new(), and m_gi.

GeoIPWrapper::~GeoIPWrapper  ) 
 

Definition at line 32 of file GeoIPWrapper.cpp.

References GeoIP_delete(), and m_gi.


Member Function Documentation

const char * GeoIPWrapper::getCountryCode3ByAddr const char *  addr  )  const
 

Definition at line 58 of file GeoIPWrapper.cpp.

References GeoIP_country_code3_by_addr(), and m_gi.

const char * GeoIPWrapper::getCountryCode3ByName const char *  host  )  const
 

Definition at line 51 of file GeoIPWrapper.cpp.

References GeoIP_country_code3_by_name(), and m_gi.

const char * GeoIPWrapper::getCountryCodeByAddr const char *  addr  )  const
 

Definition at line 44 of file GeoIPWrapper.cpp.

References GeoIP_country_code_by_addr(), and m_gi.

const char * GeoIPWrapper::getCountryCodeByName const char *  host  )  const
 

Definition at line 37 of file GeoIPWrapper.cpp.

References GeoIP_country_code_by_name(), and m_gi.

const char * GeoIPWrapper::getCountryNameByAddr const char *  addr  )  const
 

Definition at line 72 of file GeoIPWrapper.cpp.

References GeoIP_country_name_by_addr(), and m_gi.

const char * GeoIPWrapper::getCountryNameByName const char *  host  )  const
 

Definition at line 65 of file GeoIPWrapper.cpp.

References GeoIP_country_name_by_name(), and m_gi.

int GeoIPWrapper::getIdByAddr const char *  addr  )  const
 

Definition at line 85 of file GeoIPWrapper.cpp.

References GeoIP_id_by_addr(), and m_gi.

Referenced by CountryFilter::ClientConnect(), CountryFilter::handleCountryByAddrCommand(), and CountryFilter::testGeoIP().

int GeoIPWrapper::getIdByName const char *  host  )  const
 

Definition at line 79 of file GeoIPWrapper.cpp.

References GeoIP_id_by_name(), and m_gi.

const char * GeoIPWrapper::idToCountryCode int  countryId  )  [static]
 

Definition at line 91 of file GeoIPWrapper.cpp.

References GeoIP_country_code.

Referenced by CountryFilter::ClientConnect(), CountryFilter::FireGameEvent(), CountryFilter::idToCountry(), and CountryFilter::testGeoIP().

const char * GeoIPWrapper::idToCountryCode3 int  countryId  )  [static]
 

Definition at line 97 of file GeoIPWrapper.cpp.

References GeoIP_country_code3.

Referenced by CountryFilter::idToCountry().

const char * GeoIPWrapper::idToCountryName int  countryId  )  [static]
 

Definition at line 103 of file GeoIPWrapper.cpp.

References GeoIP_country_name.

Referenced by CountryFilter::idToCountry().


Member Data Documentation

GeoIP* GeoIPWrapper::m_gi [private]
 

Definition at line 29 of file GeoIPWrapper.h.

Referenced by GeoIPWrapper(), getCountryCode3ByAddr(), getCountryCode3ByName(), getCountryCodeByAddr(), getCountryCodeByName(), getCountryNameByAddr(), getCountryNameByName(), getIdByAddr(), getIdByName(), and ~GeoIPWrapper().


The documentation for this class was generated from the following files:
Generated on Tue Jun 28 01:09:12 2005 for CountryFilter by  doxygen 1.4.3-20050623