OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Location.hpp
Go to the documentation of this file.
1 #ifndef __OPENTREP_LOCATION_HPP
2 #define __OPENTREP_LOCATION_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <string>
10 // OpenTrep
14 #include <opentrep/Language.hpp>
15 #include <opentrep/LocationKey.hpp>
16 #include <opentrep/NameMatrix.hpp>
18 
19 namespace OPENTREP {
20 
24  struct Location : public OPENTREP_Abstract {
25  public:
26  // ///////// Getters ////////
30  const LocationKey& getKey() const {
31  return _key;
32  }
33 
37  const IATACode_T& getIataCode() const {
38  return _key.getIataCode();
39  }
40 
44  const IATAType& getIataType() const {
45  return _key.getIataType();
46  }
47 
51  const GeonamesID_T& getGeonamesID() const {
52  return _key.getGeonamesID();
53  }
54 
58  const IsGeonames_T& isGeonames() const {
59  return _key.isGeonames();
60  }
61 
65  const ICAOCode_T& getIcaoCode() const {
66  return _icaoCode;
67  }
68 
72  const FAACode_T& getFaaCode() const {
73  return _faaCode;
74  }
75 
80  const CommonName_T& getCommonName() const {
81  return _commonName;
82  }
83 
87  const ASCIIName_T& getAsciiName() const {
88  return _asciiName;
89  }
90 
95  return _altNameShortListString;
96  }
97 
102  return _tvlPORListString;
103  }
104 
108  const EnvelopeID_T& getEnvelopeID() const {
109  return _envelopeID;
110  }
111 
115  const Date_T& getDateFrom() const {
116  return _dateFrom;
117  }
118 
122  const Date_T& getDateEnd() const {
123  return _dateEnd;
124  }
125 
129  const Comment_T& getComment() const {
130  return _comment;
131  }
132 
136  const CityCode_T& getCityCode() const {
137  return _cityCode;
138  }
139 
143  const CityUTFName_T& getCityUtfName() const {
144  return _cityUtfName;
145  }
146 
151  return _cityAsciiName;
152  }
153 
158  return _cityGeonamesID;
159  }
160 
164  const StateCode_T& getStateCode() const {
165  return _stateCode;
166  }
167 
171  const CountryCode_T& getCountryCode() const {
172  return _countryCode;
173  }
174 
179  return _altCountryCode;
180  }
181 
185  const CountryName_T& getCountryName() const {
186  return _countryName;
187  }
188 
193  return _continentCode;
194  }
195 
200  return _continentName;
201  }
202 
206  const TimeZone_T& getTimeZone() const {
207  return _timeZone;
208  }
209 
213  const GMTOffset_T& getGMTOffset() const {
214  return _gmtOffset;
215  }
216 
220  const DSTOffset_T& getDSTOffset() const {
221  return _dstOffset;
222  }
223 
227  const RawOffset_T& getRawOffset() const {
228  return _rawOffset;
229  }
230 
234  const Latitude_T& getLatitude() const {
235  return _latitude;
236  }
237 
241  const Longitude_T& getLongitude() const {
242  return _longitude;
243  }
244 
249  return _featClass;
250  }
251 
255  const FeatureCode_T& getFeatureCode() const {
256  return _featCode;
257  }
258 
262  const Admin1Code_T& getAdmin1Code() const {
263  return _admin1Code;
264  }
265 
270  return _admin1UtfName;
271  }
272 
277  return _admin1AsciiName;
278  }
279 
283  const Admin2Code_T& getAdmin2Code() const {
284  return _admin2Code;
285  }
286 
291  return _admin2UtfName;
292  }
293 
298  return _admin2AsciiName;
299  }
300 
304  const Admin3Code_T& getAdmin3Code() const {
305  return _admin3Code;
306  }
307 
311  const Admin4Code_T& getAdmin4Code() const {
312  return _admin4Code;
313  }
314 
318  const Population_T& getPopulation() const {
319  return _population;
320  }
321 
325  const Elevation_T& getElevation() const {
326  return _elevation;
327  }
328 
332  const GTopo30_T& getGTopo30() const {
333  return _gTopo30;
334  }
335 
339  const PageRank_T& getPageRank() const {
340  return _pageRank;
341  }
342 
346  const Date_T& getModificationDate() const {
347  return _modificationDate;
348  }
349 
353  const WikiLink_T& getWikiLink() const {
354  return _wikiLink;
355  }
356 
360  const NameMatrix& getNameMatrix() const {
361  return _nameMatrix;
362  }
363 
373  bool getNameList (const LanguageCode_T& iLanguageCode,
374  NameList_T& ioNameList) const {
375  return _nameMatrix.getNameList (iLanguageCode, ioNameList);
376  }
377 
381  const std::string& getOriginalKeywords() const {
382  return _originalKeywords;
383  }
384 
388  const std::string& getCorrectedKeywords() const {
389  return _correctedKeywords;
390  }
391 
396  return _percentage;
397  }
398 
402  const NbOfErrors_T& getEditDistance() const {
403  return _editDistance;
404  }
405 
411  return _allowableEditDistance;
412  }
413 
418  return _extraLocationList;
419  }
420 
425  return _alternateLocationList;
426  }
427 
432  return _rawDataString;
433  }
434 
435 
436  public:
437  // ///////////////////// Setters //////////////////////
441  void setKey (const LocationKey& iKey) {
442  _key = iKey;
443  }
444 
448  void setIataCode (const std::string& iIataCode) {
449  _key.setIataCode (iIataCode);
450  }
451 
455  void setIataType (const IATAType& iIATAType) {
456  _key.setIataType (iIATAType);
457  }
458 
462  void setGeonamesID (const GeonamesID_T& iGeonamesID) {
463  _key.setGeonamesID (iGeonamesID);
464  }
465 
469  void setIcaoCode (const std::string& iIcaoCode) {
470  _icaoCode = ICAOCode_T (iIcaoCode);
471  }
472 
476  void setFaaCode (const std::string& iFaaCode) {
477  _faaCode = FAACode_T (iFaaCode);
478  }
479 
484  void setCommonName (const std::string& iName) {
485  _commonName = CommonName_T (iName);
486  }
487 
491  void setAsciiName (const std::string& iName) {
492  _asciiName = ASCIIName_T (iName);
493  }
494 
498  void setAltNameShortListString (const std::string& iNameListString) {
499  _altNameShortListString = AltNameShortListString_T (iNameListString);
500  }
501 
505  void setTvlPORListString (const std::string& iPORListString) {
506  _tvlPORListString = TvlPORListString_T (iPORListString);
507  }
508 
512  void setEnvelopeID (const EnvelopeID_T& iEnvelopeID) {
513  _envelopeID = iEnvelopeID;
514  }
515 
519  void setDateFrom (const Date_T& iDate) {
520  _dateFrom = iDate;
521  }
522 
526  void setDateEnd (const Date_T& iDate) {
527  _dateEnd = iDate;
528  }
529 
533  void setComment (const std::string& iComment) {
534  _comment = Comment_T (iComment);
535  }
536 
540  void setCityCode (const std::string& iCityCode) {
541  _cityCode = CityCode_T (iCityCode);
542  }
543 
547  void setCityUtfName (const std::string& iCityUtfName) {
548  _cityUtfName = CityUTFName_T (iCityUtfName);
549  }
550 
554  void setCityAsciiName (const std::string& iCityAsciiName) {
555  _cityAsciiName = CityASCIIName_T (iCityAsciiName);
556  }
557 
561  void setCityGeonamesID (const GeonamesID_T& iGeonamesID) {
562  _cityGeonamesID = iGeonamesID;
563  }
564 
568  void setCountryCode (const std::string& iCountryCode) {
569  _countryCode = CountryCode_T (iCountryCode);
570  }
571 
575  void setAltCountryCode (const std::string& iCountryCode) {
576  _altCountryCode = AltCountryCode_T (iCountryCode);
577  }
578 
582  void setCountryName (const std::string& iCountryName) {
583  _countryName = CountryName_T (iCountryName);
584  }
585 
589  void setStateCode (const std::string& iStateCode) {
590  _stateCode = StateCode_T (iStateCode);
591  }
592 
596  void setContinentCode (const std::string& iContinentCode) {
597  _continentCode = ContinentCode_T (iContinentCode);
598  }
599 
603  void setContinentName (const std::string& iContinentName) {
604  _continentName = ContinentName_T (iContinentName);
605  }
606 
610  void setTimeZone (const std::string& iTimeZone) {
611  _timeZone = TimeZone_T (iTimeZone);
612  }
613 
617  void setGMTOffset (const GMTOffset_T& iOffset) {
618  _gmtOffset = iOffset;
619  }
620 
624  void setDSTOffset (const DSTOffset_T& iOffset) {
625  _dstOffset = iOffset;
626  }
627 
631  void setRawOffset (const RawOffset_T& iOffset) {
632  _rawOffset = iOffset;
633  }
634 
638  void setLatitude (const Latitude_T& iLatitude) {
639  _latitude = iLatitude;
640  }
641 
645  void setLongitude (const Longitude_T& iLongitude) {
646  _longitude = iLongitude;
647  }
648 
652  void setFeatureClass (const std::string& iFeatClass) {
653  _featClass = FeatureClass_T (iFeatClass);
654  }
655 
659  void setFeatureCode (const std::string& iFeatCode) {
660  _featCode = FeatureCode_T (iFeatCode);
661  }
662 
666  void setAdmin1Code (const std::string& iAdminCode) {
667  _admin1Code = Admin1Code_T (iAdminCode);
668  }
669 
673  void setAdmin1UtfName (const std::string& iAdminName) {
674  _admin1UtfName = Admin1UTFName_T (iAdminName);
675  }
676 
680  void setAdmin1AsciiName (const std::string& iAdminName) {
681  _admin1AsciiName = Admin1ASCIIName_T (iAdminName);
682  }
683 
687  void setAdmin2Code (const std::string& iAdminCode) {
688  _admin2Code = Admin2Code_T (iAdminCode);
689  }
690 
694  void setAdmin2UtfName (const std::string& iAdminName) {
695  _admin2UtfName = Admin2UTFName_T (iAdminName);
696  }
697 
701  void setAdmin2AsciiName (const std::string& iAdminName) {
702  _admin2AsciiName = Admin2ASCIIName_T (iAdminName);
703  }
704 
708  void setAdmin3Code (const std::string& iAdminCode) {
709  _admin3Code = Admin3Code_T (iAdminCode);
710  }
711 
715  void setAdmin4Code (const std::string& iAdminCode) {
716  _admin4Code = Admin4Code_T (iAdminCode);
717  }
718 
722  void setPopulation (const Population_T& iPopulation) {
723  _population = iPopulation;
724  }
725 
729  void setElevation (const Elevation_T& iElevation) {
730  _elevation = iElevation;
731  }
732 
736  void setGTopo30 (const GTopo30_T& iGTopo30) {
737  _gTopo30 = iGTopo30;
738  }
739 
743  void setPageRank (const PageRank_T& iPageRank) {
744  _pageRank = iPageRank;
745  }
746 
750  void setModificationDate (const Date_T& iModDate) {
751  _modificationDate = iModDate;
752  }
753 
757  void setWikiLink (const std::string& iWikiLink) {
758  _wikiLink = WikiLink_T (iWikiLink);
759  }
760 
767  void addName (const LanguageCode_T& iLanguageCode,
768  const std::string& iName) {
769  _nameMatrix.addName (iLanguageCode, iName);
770  }
771 
775  void resetMatrix() {
776  _nameMatrix.reset();
777  }
778 
782  void setOriginalKeywords (const std::string& iOriginalKeywords) {
783  _originalKeywords = iOriginalKeywords;
784  }
785 
789  void setCorrectedKeywords (const std::string& iCorrectedKeywords) {
790  _correctedKeywords = iCorrectedKeywords;
791  }
792 
796  void setPercentage (const MatchingPercentage_T& iPercentage) {
797  _percentage = iPercentage;
798  }
799 
803  void setEditDistance (const NbOfErrors_T& iEditDistance) {
804  _editDistance = iEditDistance;
805  }
806 
811  void setAllowableEditDistance (const NbOfErrors_T& iAllowableEditDistance) {
812  _allowableEditDistance = iAllowableEditDistance;
813  }
814 
818  void addExtraLocation (const Location& iExtraLocation) {
819  _extraLocationList.push_back (iExtraLocation);
820  }
821 
825  void addAlternateLocation (const Location& iAlternateLocation) {
826  _alternateLocationList.push_back (iAlternateLocation);
827  }
828 
832  void setRawDataString (const std::string& iRawDataString) {
833  _rawDataString = RawDataString_T (iRawDataString);
834  }
835 
836 
837  public:
838  // ///////// Parsing support methods ////////
842  Date_T calculateDate() const;
843 
849 
854 
871 
872 
873  public:
874  // ///////// Display methods ////////
880  void toStream (std::ostream&) const;
881 
887  void fromStream (std::istream&);
888 
894  std::string toString() const;
895 
899  std::string describeKey() const;
900 
904  std::string describeShortKey() const;
905 
912  std::string toBasicString() const;
913 
920  std::string toShortString() const;
921 
928  std::string toSingleLocationString() const;
929 
930 
931  public:
935  Location (const IATACode_T&, const IATAType&, const GeonamesID_T&,
936  const ICAOCode_T&, const FAACode_T&,
937  const CommonName_T&, const ASCIIName_T&,
938  const EnvelopeID_T&,
939  const Date_T& iDateFrom, const Date_T& iDateEnd, const Comment_T&,
940  const CityCode_T&, const CityUTFName_T&, const CityASCIIName_T&,
941  const GeonamesID_T&,
942  const StateCode_T&, const CountryCode_T&, const AltCountryCode_T&,
943  const CountryName_T&, const ContinentName_T&,
944  const Latitude_T&, const Longitude_T&,
945  const FeatureClass_T&, const FeatureCode_T&,
946  const Admin1Code_T&, const Admin1UTFName_T&,
947  const Admin1ASCIIName_T&,
948  const Admin2Code_T&, const Admin2UTFName_T&,
949  const Admin2ASCIIName_T&,
950  const Admin3Code_T&, const Admin4Code_T&,
951  const Population_T&, const Elevation_T&, const GTopo30_T&,
952  const TimeZone_T&,
953  const GMTOffset_T&, const DSTOffset_T&, const RawOffset_T&,
954  const Date_T& iModDate, const TvlPORListString_T&,
955  const WikiLink_T&, const PageRank_T&,
956  const std::string& iOriginalKeywords,
957  const std::string& iCorrectedKeywords,
958  const MatchingPercentage_T& iPercentage,
959  const NbOfErrors_T& iEditDistance,
960  const NbOfErrors_T& iAllowableEditDistance,
961  const RawDataString_T&);
962 
966  Location();
967 
971  Location (const Location&);
972 
976  ~Location();
977 
978 
979  private:
980  // /////// Attributes /////////
984  LocationKey _key;
985 
989  ICAOCode_T _icaoCode;
990 
994  FAACode_T _faaCode;
995 
999  CommonName_T _commonName;
1000 
1004  ASCIIName_T _asciiName;
1005 
1011  AltNameShortListString_T _altNameShortListString;
1012 
1017  TvlPORListString_T _tvlPORListString;
1018 
1027  EnvelopeID_T _envelopeID;
1028 
1032  Date_T _dateFrom;
1033 
1037  Date_T _dateEnd;
1038 
1042  Comment_T _comment;
1043 
1049  CityCode_T _cityCode;
1050 
1056  CityUTFName_T _cityUtfName;
1057 
1064  CityASCIIName_T _cityAsciiName;
1065 
1071  GeonamesID_T _cityGeonamesID;
1072 
1076  StateCode_T _stateCode;
1077 
1081  CountryCode_T _countryCode;
1082 
1086  AltCountryCode_T _altCountryCode;
1087 
1091  CountryName_T _countryName;
1092 
1096  ContinentCode_T _continentCode;
1097 
1101  ContinentName_T _continentName;
1102 
1106  Latitude_T _latitude;
1107 
1111  Longitude_T _longitude;
1112 
1116  FeatureClass_T _featClass;
1117 
1121  FeatureCode_T _featCode;
1122 
1126  Admin1Code_T _admin1Code;
1127 
1131  Admin1UTFName_T _admin1UtfName;
1132 
1136  Admin1ASCIIName_T _admin1AsciiName;
1137 
1141  Admin2Code_T _admin2Code;
1142 
1146  Admin2UTFName_T _admin2UtfName;
1147 
1151  Admin2ASCIIName_T _admin2AsciiName;
1152 
1156  Admin3Code_T _admin3Code;
1157 
1161  Admin4Code_T _admin4Code;
1162 
1166  Population_T _population;
1167 
1171  Elevation_T _elevation;
1172 
1176  GTopo30_T _gTopo30;
1177 
1181  TimeZone_T _timeZone;
1182 
1186  GMTOffset_T _gmtOffset;
1187 
1191  DSTOffset_T _dstOffset;
1192 
1196  RawOffset_T _rawOffset;
1197 
1201  Date_T _modificationDate;
1202 
1206  WikiLink_T _wikiLink;
1207 
1218  PageRank_T _pageRank;
1219 
1223  NameMatrix _nameMatrix;
1224 
1225  private:
1226  // ///////////// Full-text matching process support attributes //////////
1230  std::string _originalKeywords;
1231 
1235  std::string _correctedKeywords;
1236 
1240  MatchingPercentage_T _percentage;
1241 
1245  NbOfErrors_T _editDistance;
1246 
1251  NbOfErrors_T _allowableEditDistance;
1252 
1256  LocationList_T _extraLocationList;
1257 
1261  LocationList_T _alternateLocationList;
1262 
1267  RawDataString_T _rawDataString;
1268 
1269 
1270  public:
1271  // ///////// Parsing support temporary attributes ////////
1278 
1284  std::string _itLangCode2Char;
1285  std::string _itLangCodeExt;
1286  std::string _itLangCodeHist;
1289  };
1290 
1291 }
1292 #endif // __OPENTREP_LOCATION_HPP
void setStateCode(const std::string &iStateCode)
Definition: Location.hpp:589
void fromStream(std::istream &)
Definition: Location.cpp:193
TvlPORList_T _itTvlPORList
Definition: Location.hpp:1288
Class modelling the primary key of a location/POR (point of reference).
Definition: LocationKey.hpp:21
const Admin3Code_T & getAdmin3Code() const
Definition: Location.hpp:304
const Admin1Code_T & getAdmin1Code() const
Definition: Location.hpp:262
void setAdmin4Code(const std::string &iAdminCode)
Definition: Location.hpp:715
const CountryCode_T & getCountryCode() const
Definition: Location.hpp:171
void setIataCode(const std::string &iIataCode)
Definition: LocationKey.hpp:58
void setCityAsciiName(const std::string &iCityAsciiName)
Definition: Location.hpp:554
const Latitude_T & getLatitude() const
Definition: Location.hpp:234
const Population_T & getPopulation() const
Definition: Location.hpp:318
bool getNameList(const LanguageCode_T &, NameList_T &) const
Definition: NameMatrix.cpp:67
void setAltCountryCode(const std::string &iCountryCode)
Definition: Location.hpp:575
void consolidateAltNameShortListString()
Definition: Location.cpp:313
void addExtraLocation(const Location &iExtraLocation)
Definition: Location.hpp:818
const Date_T & getDateFrom() const
Definition: Location.hpp:115
void setFeatureCode(const std::string &iFeatCode)
Definition: Location.hpp:659
void setAdmin1AsciiName(const std::string &iAdminName)
Definition: Location.hpp:680
const IATAType & getIataType() const
Definition: LocationKey.hpp:34
void setContinentCode(const std::string &iContinentCode)
Definition: Location.hpp:596
void setFeatureClass(const std::string &iFeatClass)
Definition: Location.hpp:652
std::string toSingleLocationString() const
Definition: Location.cpp:262
void setGTopo30(const GTopo30_T &iGTopo30)
Definition: Location.hpp:736
std::string _itLangCodeExt
Definition: Location.hpp:1285
void addName(const LanguageCode_T &, const std::string &iName)
Definition: NameMatrix.cpp:82
void setCorrectedKeywords(const std::string &iCorrectedKeywords)
Definition: Location.hpp:789
Date_T calculateDate() const
Definition: Location.cpp:307
void setCountryName(const std::string &iCountryName)
Definition: Location.hpp:582
LanguageCode_T _itLanguageCode
Definition: Location.hpp:1283
const IATAType & getIataType() const
Definition: Location.hpp:44
Structure modelling a (geographical) location.
Definition: Location.hpp:24
void setEnvelopeID(const EnvelopeID_T &iEnvelopeID)
Definition: Location.hpp:512
void setLongitude(const Longitude_T &iLongitude)
Definition: Location.hpp:645
double PageRank_T
const Admin1ASCIIName_T & getAdmin1AsciiName() const
Definition: Location.hpp:276
const FeatureCode_T & getFeatureCode() const
Definition: Location.hpp:255
const CityASCIIName_T & getCityAsciiName() const
Definition: Location.hpp:150
const FAACode_T & getFaaCode() const
Definition: Location.hpp:72
const IsGeonames_T & isGeonames() const
Definition: Location.hpp:58
const NbOfErrors_T & getAllowableEditDistance() const
Definition: Location.hpp:410
const ContinentName_T & getContinentName() const
Definition: Location.hpp:199
std::string toShortString() const
Definition: Location.cpp:245
void setGeonamesID(const GeonamesID_T &iGeonamesID)
Definition: Location.hpp:462
const Admin1UTFName_T & getAdmin1UtfName() const
Definition: Location.hpp:269
static FeatureNameList_T getFeatureList(const FeatureCode_T &)
Definition: Location.cpp:349
void setFaaCode(const std::string &iFaaCode)
Definition: Location.hpp:476
std::list< FeatureName_T > FeatureNameList_T
boost::gregorian::date Date_T
const LocationList_T & getAlternateLocationList() const
Definition: Location.hpp:424
float GMTOffset_T
void setDSTOffset(const DSTOffset_T &iOffset)
Definition: Location.hpp:624
std::list< std::string > NameList_T
Definition: Names.hpp:20
const std::string & getCorrectedKeywords() const
Definition: Location.hpp:388
const TvlPORListString_T & getTvlPORListString() const
Definition: Location.hpp:101
void setAdmin2AsciiName(const std::string &iAdminName)
Definition: Location.hpp:701
bool getNameList(const LanguageCode_T &iLanguageCode, NameList_T &ioNameList) const
Definition: Location.hpp:373
const Date_T & getModificationDate() const
Definition: Location.hpp:346
unsigned int Population_T
void setWikiLink(const std::string &iWikiLink)
Definition: Location.hpp:757
const NameMatrix & getNameMatrix() const
Definition: Location.hpp:360
const Admin2UTFName_T & getAdmin2UtfName() const
Definition: Location.hpp:290
std::list< TvlPORListString_T > TvlPORList_T
void setCountryCode(const std::string &iCountryCode)
Definition: Location.hpp:568
std::string describeKey() const
Definition: Location.cpp:204
void setCityCode(const std::string &iCityCode)
Definition: Location.hpp:540
void setGMTOffset(const GMTOffset_T &iOffset)
Definition: Location.hpp:617
const Date_T & getDateEnd() const
Definition: Location.hpp:122
float RawOffset_T
const AltCountryCode_T & getAltCountryCode() const
Definition: Location.hpp:178
const PageRank_T & getPageRank() const
Definition: Location.hpp:339
void setTimeZone(const std::string &iTimeZone)
Definition: Location.hpp:610
const GeonamesID_T & getCityGeonamesID() const
Definition: Location.hpp:157
void setIcaoCode(const std::string &iIcaoCode)
Definition: Location.hpp:469
const GeonamesID_T & getGeonamesID() const
Definition: Location.hpp:51
float DSTOffset_T
const AltNameShortListString_T & getAltNameShortListString() const
Definition: Location.hpp:94
void setModificationDate(const Date_T &iModDate)
Definition: Location.hpp:750
const ICAOCode_T & getIcaoCode() const
Definition: Location.hpp:65
const CommonName_T & getCommonName() const
Definition: Location.hpp:80
unsigned short NbOfErrors_T
void setPercentage(const MatchingPercentage_T &iPercentage)
Definition: Location.hpp:796
void setOriginalKeywords(const std::string &iOriginalKeywords)
Definition: Location.hpp:782
const MatchingPercentage_T & getPercentage() const
Definition: Location.hpp:395
const NbOfErrors_T & getEditDistance() const
Definition: Location.hpp:402
const FeatureClass_T & getFeatureClass() const
Definition: Location.hpp:248
void setCommonName(const std::string &iName)
Definition: Location.hpp:484
const CityUTFName_T & getCityUtfName() const
Definition: Location.hpp:143
std::list< Location > LocationList_T
std::string describeShortKey() const
Definition: Location.cpp:197
void setGeonamesID(const GeonamesID_T &iGeonamesID)
Definition: LocationKey.hpp:72
void setComment(const std::string &iComment)
Definition: Location.hpp:533
void setTvlPORListString(const std::string &iPORListString)
Definition: Location.hpp:505
const RawOffset_T & getRawOffset() const
Definition: Location.hpp:227
const RawDataString_T & getRawDataString() const
Definition: Location.hpp:431
std::string toString() const
Definition: Location.cpp:269
std::string toBasicString() const
Definition: Location.cpp:209
void setAsciiName(const std::string &iName)
Definition: Location.hpp:491
const GeonamesID_T & getGeonamesID() const
Definition: LocationKey.hpp:41
const Elevation_T & getElevation() const
Definition: Location.hpp:325
const IATACode_T & getIataCode() const
Definition: Location.hpp:37
AltNameShortList_T _itAltNameShortList
Definition: Location.hpp:1287
Language::EN_Language _itLanguageCodeNum
Definition: Location.hpp:1282
void setAdmin1UtfName(const std::string &iAdminName)
Definition: Location.hpp:673
std::string _itLangCodeHist
Definition: Location.hpp:1286
const Admin2Code_T & getAdmin2Code() const
Definition: Location.hpp:283
GeoCoord_T Longitude_T
void setContinentName(const std::string &iContinentName)
Definition: Location.hpp:603
void setDateFrom(const Date_T &iDate)
Definition: Location.hpp:519
const IsGeonames_T & isGeonames() const
Definition: LocationKey.hpp:48
void setIataCode(const std::string &iIataCode)
Definition: Location.hpp:448
const Comment_T & getComment() const
Definition: Location.hpp:129
const GTopo30_T & getGTopo30() const
Definition: Location.hpp:332
const LocationList_T & getExtraLocationList() const
Definition: Location.hpp:417
void setAdmin3Code(const std::string &iAdminCode)
Definition: Location.hpp:708
const LocationKey & getKey() const
Definition: Location.hpp:30
const Admin2ASCIIName_T & getAdmin2AsciiName() const
Definition: Location.hpp:297
void setLatitude(const Latitude_T &iLatitude)
Definition: Location.hpp:638
void setAdmin1Code(const std::string &iAdminCode)
Definition: Location.hpp:666
const ContinentCode_T & getContinentCode() const
Definition: Location.hpp:192
void setPageRank(const PageRank_T &iPageRank)
Definition: Location.hpp:743
const CityCode_T & getCityCode() const
Definition: Location.hpp:136
void consolidateTvlPORListString()
Definition: Location.cpp:331
const std::string & getOriginalKeywords() const
Definition: Location.hpp:381
void setAltNameShortListString(const std::string &iNameListString)
Definition: Location.hpp:498
void addAlternateLocation(const Location &iAlternateLocation)
Definition: Location.hpp:825
void setCityGeonamesID(const GeonamesID_T &iGeonamesID)
Definition: Location.hpp:561
void setEditDistance(const NbOfErrors_T &iEditDistance)
Definition: Location.hpp:803
const Admin4Code_T & getAdmin4Code() const
Definition: Location.hpp:311
void setDateEnd(const Date_T &iDate)
Definition: Location.hpp:526
const StateCode_T & getStateCode() const
Definition: Location.hpp:164
Enumeration of output types.
Definition: IATAType.hpp:22
void setAllowableEditDistance(const NbOfErrors_T &iAllowableEditDistance)
Definition: Location.hpp:811
GeoCoord_T Latitude_T
void setIataType(const IATAType &iIATAType)
Definition: LocationKey.hpp:65
const EnvelopeID_T & getEnvelopeID() const
Definition: Location.hpp:108
void setElevation(const Elevation_T &iElevation)
Definition: Location.hpp:729
void setCityUtfName(const std::string &iCityUtfName)
Definition: Location.hpp:547
void setRawDataString(const std::string &iRawDataString)
Definition: Location.hpp:832
const CountryName_T & getCountryName() const
Definition: Location.hpp:185
void addName(const LanguageCode_T &iLanguageCode, const std::string &iName)
Definition: Location.hpp:767
const WikiLink_T & getWikiLink() const
Definition: Location.hpp:353
const IATACode_T & getIataCode() const
Definition: LocationKey.hpp:27
const ASCIIName_T & getAsciiName() const
Definition: Location.hpp:87
double MatchingPercentage_T
const DSTOffset_T & getDSTOffset() const
Definition: Location.hpp:220
void toStream(std::ostream &) const
Definition: Location.cpp:188
std::string _itLangCode2Char
Definition: Location.hpp:1284
const GMTOffset_T & getGMTOffset() const
Definition: Location.hpp:213
void setRawOffset(const RawOffset_T &iOffset)
Definition: Location.hpp:631
void setKey(const LocationKey &iKey)
Definition: Location.hpp:441
void setAdmin2UtfName(const std::string &iAdminName)
Definition: Location.hpp:694
void setPopulation(const Population_T &iPopulation)
Definition: Location.hpp:722
void setIataType(const IATAType &iIATAType)
Definition: Location.hpp:455
std::list< AltNameShortListString_T > AltNameShortList_T
const TimeZone_T & getTimeZone() const
Definition: Location.hpp:206
const Longitude_T & getLongitude() const
Definition: Location.hpp:241
void setAdmin2Code(const std::string &iAdminCode)
Definition: Location.hpp:687