Class modelling the elementary details of a city. More...
#include <opentrep/CityDetails.hpp>
Public Member Functions | |
const IATACode_T & | getIataCode () const |
const GeonamesID_T & | getGeonamesID () const |
const CityUTFName_T & | getUtfName () const |
const CityASCIIName_T & | getAsciiName () const |
const CountryCode_T & | getCountryCode () const |
const StateCode_T & | getStateCode () const |
void | setIataCode (const std::string &iIataCode) |
void | setGeonamesID (const GeonamesID_T &iGeonamesID) |
void | setUtfName (const CityUTFName_T &iUtfName) |
void | setAsciiName (const CityASCIIName_T &iAsciiName) |
void | setCountryCode (const std::string &iCountryCode) |
void | setStateCode (const std::string &iStateCode) |
void | toStream (std::ostream &) const |
void | fromStream (std::istream &) |
std::string | toString () const |
std::string | describe () const |
CityDetails (const IATACode_T &, const GeonamesID_T &, const CityUTFName_T &, const CityASCIIName_T &, const CountryCode_T &, const StateCode_T &) | |
CityDetails (const CityDetails &) | |
~CityDetails () | |
bool | operator== (const CityDetails &) const |
bool | operator!= (const CityDetails &iCityDetails) const |
Class modelling the elementary details of a city.
The CityDetails structure contains:
Definition at line 30 of file CityDetails.hpp.
OPENTREP::CityDetails::CityDetails | ( | const IATACode_T & | iIataCode, |
const GeonamesID_T & | iGeonamesID, | ||
const CityUTFName_T & | iUtfName, | ||
const CityASCIIName_T & | iAsciiName, | ||
const CountryCode_T & | iCountryCode, | ||
const StateCode_T & | iStateCode ) |
Main constructor.
Definition at line 13 of file CityDetails.cpp.
References CityDetails().
Referenced by CityDetails(), CityDetails(), operator!=(), and operator==().
OPENTREP::CityDetails::CityDetails | ( | const CityDetails & | iCityDetails | ) |
OPENTREP::CityDetails::~CityDetails | ( | ) |
Destructor.
Definition at line 40 of file CityDetails.cpp.
|
inline |
Get the IATA code.
Definition at line 36 of file CityDetails.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the Geonames ID.
Definition at line 43 of file CityDetails.hpp.
Referenced by OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the name in UTF8.
Definition at line 50 of file CityDetails.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the name in ASCII (not necessarily in English). That corresponds to the transliterated version of the Unicode one.
Definition at line 58 of file CityDetails.hpp.
Referenced by OPENTREP::Place::buildIndexSets(), OPENTREP::LocationExchange::exportLocation(), and OPENTREP::BomJSONExport::jsonExportLocation().
|
inline |
Get the country code (of the city).
Definition at line 65 of file CityDetails.hpp.
|
inline |
Get the state (ISO-3166-2) code (of the city).
Definition at line 72 of file CityDetails.hpp.
|
inline |
Set the IATA code.
Definition at line 82 of file CityDetails.hpp.
|
inline |
Set the Geonames ID.
Definition at line 89 of file CityDetails.hpp.
|
inline |
Set the name in UTF8.
Definition at line 96 of file CityDetails.hpp.
|
inline |
Set the name in ASCII (not necessarily in English). That corresponds to the transliterated version of the Unicode one.
Definition at line 104 of file CityDetails.hpp.
|
inline |
Set the country code.
Definition at line 111 of file CityDetails.hpp.
|
inline |
Set the state code.
Definition at line 118 of file CityDetails.hpp.
|
virtual |
Dump the structure into an output stream.
ostream& | the output stream. |
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 72 of file CityDetails.cpp.
References toString().
|
virtual |
Read a structure from an input stream.
istream& | the input stream. |
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 77 of file CityDetails.cpp.
|
virtual |
Get the serialised version of the structure.
Implements OPENTREP::OPENTREP_Abstract.
Definition at line 65 of file CityDetails.cpp.
References describe().
Referenced by toStream().
std::string OPENTREP::CityDetails::describe | ( | ) | const |
Get a string describing the whole key (differentiating two objects at any level).
Definition at line 55 of file CityDetails.cpp.
Referenced by toString().
bool OPENTREP::CityDetails::operator== | ( | const CityDetails & | iCityDetails | ) | const |
|
inline |