OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Place.hpp
Go to the documentation of this file.
1 #ifndef __OPENTREP_BOM_PLACE_HPP
2 #define __OPENTREP_BOM_PLACE_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <string>
10 #include <set>
11 // OpenTrep
13 #include <opentrep/NameMatrix.hpp>
14 #include <opentrep/Location.hpp>
17 
18 namespace OPENTREP {
19 
20  // Forward declarations
21  class World;
22  class PlaceHolder;
23  struct OTransliterator;
24 
28  class Place : public BomAbstract {
29  friend class FacWorld;
30  friend class FacPlace;
31  friend class FacPlaceHolder;
32  friend class DbaPlace;
33  public:
34  // /////////// Type definitions //////////
39  typedef std::set<std::string> StringSet_T;
40  typedef std::map<const Weight_T, StringSet_T> TermSetMap_T;
41 
42 
43  public:
44  // //////////////// Getters ///////////////
51  const Location& getLocation() const {
52  return _location;
53  }
54 
58  const LocationKey& getKey() const {
59  return _location.getKey();
60  }
61 
65  const IATACode_T& getIataCode() const {
66  return _location.getIataCode();
67  }
68 
72  const IATAType& getIataType() const {
73  return _location.getIataType();
74  }
75 
79  const GeonamesID_T& getGeonamesID() const {
80  return _location.getGeonamesID();
81  }
82 
86  const IsGeonames_T& isGeonames() const {
87  return _location.isGeonames();
88  }
89 
93  const ICAOCode_T& getIcaoCode() const {
94  return _location.getIcaoCode();
95  }
96 
100  const FAACode_T& getFaaCode() const {
101  return _location.getFaaCode();
102  }
103 
108  const CommonName_T& getCommonName() const {
109  return _location.getCommonName();
110  }
111 
115  const ASCIIName_T& getAsciiName() const {
116  return _location.getAsciiName();
117  }
118 
123  return _location.getAltNameShortListString();
124  }
125 
129  const EnvelopeID_T& getEnvelopeID() const {
130  return _location.getEnvelopeID();
131  }
132 
136  const Date_T& getDateFrom() const {
137  return _location.getDateFrom();
138  }
139 
143  const Date_T& getDateEnd() const {
144  return _location.getDateEnd();
145  }
146 
150  const Comment_T& getComment() const {
151  return _location.getComment();
152  }
153 
157  const CityCode_T& getCityCode() const {
158  return _location.getCityCode();
159  }
160 
164  const CityUTFName_T& getCityUtfName() const {
165  return _location.getCityUtfName();
166  }
167 
172  return _location.getCityAsciiName();
173  }
174 
179  return _location.getCityGeonamesID();
180  }
181 
185  const StateCode_T& getStateCode() const {
186  return _location.getStateCode();
187  }
188 
192  const CountryCode_T& getCountryCode() const {
193  return _location.getCountryCode();
194  }
195 
200  return _location.getAltCountryCode();
201  }
202 
206  const CountryName_T& getCountryName() const {
207  return _location.getCountryName();
208  }
209 
214  return _location.getContinentCode();
215  }
216 
221  return _location.getContinentName();
222  }
223 
227  const TimeZone_T& getTimeZone() const {
228  return _location.getTimeZone();
229  }
230 
234  const GMTOffset_T& getGMTOffset() const {
235  return _location.getGMTOffset();
236  }
237 
241  const DSTOffset_T& getDSTOffset() const {
242  return _location.getDSTOffset();
243  }
244 
248  const RawOffset_T& getRawOffset() const {
249  return _location.getRawOffset();
250  }
251 
255  const Latitude_T& getLatitude() const {
256  return _location.getLatitude();
257  }
258 
262  const Longitude_T& getLongitude() const {
263  return _location.getLongitude();
264  }
265 
270  return _location.getFeatureClass();
271  }
272 
276  const FeatureCode_T& getFeatureCode() const {
277  return _location.getFeatureCode();
278  }
279 
283  const Admin1Code_T& getAdmin1Code() const {
284  return _location.getAdmin1Code();
285  }
286 
291  return _location.getAdmin1UtfName();
292  }
293 
298  return _location.getAdmin1AsciiName();
299  }
300 
304  const Admin2Code_T& getAdmin2Code() const {
305  return _location.getAdmin2Code();
306  }
307 
312  return _location.getAdmin2UtfName();
313  }
314 
319  return _location.getAdmin2AsciiName();
320  }
321 
325  const Admin3Code_T& getAdmin3Code() const {
326  return _location.getAdmin3Code();
327  }
328 
332  const Admin4Code_T& getAdmin4Code() const {
333  return _location.getAdmin4Code();
334  }
335 
339  const Population_T& getPopulation() const {
340  return _location.getPopulation();
341  }
342 
346  const Elevation_T& getElevation() const {
347  return _location.getElevation();
348  }
349 
353  const GTopo30_T& getGTopo30() const {
354  return _location.getGTopo30();
355  }
356 
360  const PageRank_T& getPageRank() const {
361  return _location.getPageRank();
362  }
363 
367  const Date_T& getModificationDate() const {
368  return _location.getModificationDate();
369  }
370 
374  const WikiLink_T& getWikiLink() const {
375  return _location.getWikiLink();
376  }
377 
381  const NameMatrix& getNameMatrix() const {
382  return _location.getNameMatrix();
383  }
384 
394  bool getNameList (const LanguageCode_T& iLanguageCode,
395  NameList_T& ioNameList) const {
396  return _location.getNameList (iLanguageCode, ioNameList);
397  }
398 
402  const std::string& getOriginalKeywords() const {
403  return _location.getOriginalKeywords();
404  }
405 
409  const std::string& getCorrectedKeywords() const {
410  return _location.getCorrectedKeywords();
411  }
412 
417  return _location.getPercentage();
418  }
419 
423  const NbOfErrors_T& getEditDistance() const {
424  return _location.getEditDistance();
425  }
426 
432  return _location.getAllowableEditDistance();
433  }
434 
439  return _location.getRawDataString();
440  }
441 
445  const XapianDocID_T& getDocID() const {
446  return _docID;
447  }
448 
453  return _extraPlaceList;
454  }
455 
460  return _alternatePlaceList;
461  }
462 
466  const TermSetMap_T& getTermSetMap() const {
467  return _termSetMap;
468  }
469 
475  StringSet_T getTermSet (const Weight_T&) const;
476 
480  const StringSet_T& getSpellingSet() const {
481  return _spellingSet;
482  }
483 
487  const StringSet_T& getStemmingSet() const {
488  return _stemmingSet;
489  }
490 
494  const StringSet_T& getSynonymSet() const {
495  return _synonymSet;
496  }
497 
498 
499  public:
500  // ////////////////// Setters /////////////////
504  void setLocation (const Location& iLocation) {
505  _location = iLocation;
506  }
507 
511  void setKey (const LocationKey& iKey) {
512  _location.setKey (iKey);
513  }
514 
518  void setIataCode (const std::string& iIataCode) {
519  _location.setIataCode (iIataCode);
520  }
521 
525  void setIataType (const std::string& iIATAType) {
526  _location.setIataType (iIATAType);
527  }
528 
532  void setGeonamesID (const GeonamesID_T& iGeonamesID) {
533  _location.setGeonamesID (iGeonamesID);
534  }
535 
539  void setIcaoCode (const std::string& iIcaoCode) {
540  _location.setIcaoCode (iIcaoCode);
541  }
542 
546  void setFaaCode (const std::string& iFaaCode) {
547  _location.setFaaCode (iFaaCode);
548  }
549 
554  void setCommonName (const std::string& iName) {
555  _location.setCommonName (iName);
556  }
557 
561  void setAsciiName (const std::string& iName) {
562  _location.setAsciiName (iName);
563  }
564 
568  void setAltNameShortListString (const std::string& iNameListString) {
569  _location.setAltNameShortListString (iNameListString);
570  }
571 
575  void setEnvelopeID (const EnvelopeID_T& iEnvelopeID) {
576  _location.setEnvelopeID (iEnvelopeID);
577  }
578 
582  void setDateFrom (const Date_T& iDate) {
583  _location.setDateFrom (iDate);
584  }
585 
589  void setDateEnd (const Date_T& iDate) {
590  _location.setDateEnd (iDate);
591  }
592 
596  void setComment (const std::string& iComment) {
597  _location.setComment (iComment);
598  }
599 
603  void setCityCode (const std::string& iCityCode) {
604  _location.setCityCode (iCityCode);
605  }
606 
610  void setCityUtfName (const std::string& iCityUtfName) {
611  _location.setCityUtfName (iCityUtfName);
612  }
613 
617  void setCityAsciiName (const std::string& iCityAsciiName) {
618  _location.setCityAsciiName (iCityAsciiName);
619  }
620 
624  void setCityGeonamesID (const GeonamesID_T& iGeonamesID) {
625  _location.setCityGeonamesID (iGeonamesID);
626  }
627 
631  void setStateCode (const std::string& iStateCode) {
632  _location.setStateCode (iStateCode);
633  }
634 
638  void setCountryCode (const std::string& iCountryCode) {
639  _location.setCountryCode (iCountryCode);
640  }
641 
645  void setAltCountryCode (const std::string& iCountryCode) {
646  _location.setAltCountryCode (iCountryCode);
647  }
648 
652  void setCountryName (const std::string& iCountryName) {
653  _location.setCountryName (iCountryName);
654  }
655 
659  void setContinentCode (const std::string& iContinentCode) {
660  _location.setContinentCode (iContinentCode);
661  }
662 
666  void setContinentName (const std::string& iContinentName) {
667  _location.setContinentName (iContinentName);
668  }
669 
673  void setTimeZone (const std::string& iTimeZone) {
674  _location.setTimeZone (iTimeZone);
675  }
676 
680  void setGMTOffset (const GMTOffset_T& iOffset) {
681  _location.setGMTOffset (iOffset);
682  }
683 
687  void setDSTOffset (const DSTOffset_T& iOffset) {
688  _location.setDSTOffset (iOffset);
689  }
690 
694  void setRawOffset (const RawOffset_T& iOffset) {
695  _location.setRawOffset (iOffset);
696  }
697 
701  void setLatitude (const Latitude_T& iLatitude) {
702  _location.setLatitude (iLatitude);
703  }
704 
708  void setLongitude (const Longitude_T& iLongitude) {
709  _location.setLongitude (iLongitude);
710  }
711 
715  void setFeatureClass (const std::string& iFeatClass) {
716  _location.setFeatureClass (iFeatClass);
717  }
718 
722  void setFeatureCode (const std::string& iFeatCode) {
723  _location.setFeatureCode (iFeatCode);
724  }
725 
729  void setAdmin1Code (const std::string& iAdminCode) {
730  _location.setAdmin1Code (iAdminCode);
731  }
732 
736  void setAdmin1UtfName (const std::string& iAdminName) {
737  _location.setAdmin1UtfName (iAdminName);
738  }
739 
743  void setAdmin1AsciiName (const std::string& iAdminName) {
744  _location.setAdmin1AsciiName (iAdminName);
745  }
746 
750  void setAdmin2Code (const std::string& iAdminCode) {
751  _location.setAdmin2Code (iAdminCode);
752  }
753 
757  void setAdmin2UtfName (const std::string& iAdminName) {
758  _location.setAdmin2UtfName (iAdminName);
759  }
760 
764  void setAdmin2AsciiName (const std::string& iAdminName) {
765  _location.setAdmin2AsciiName (iAdminName);
766  }
767 
771  void setAdmin3Code (const std::string& iAdminCode) {
772  _location.setAdmin3Code (iAdminCode);
773  }
774 
778  void setAdmin4Code (const std::string& iAdminCode) {
779  _location.setAdmin4Code (iAdminCode);
780  }
781 
785  void setPopulation (const Population_T& iPopulation) {
786  _location.setPopulation (iPopulation);
787  }
788 
792  void setElevation (const Elevation_T& iElevation) {
793  _location.setElevation (iElevation);
794  }
795 
799  void setGTopo30 (const GTopo30_T& iGTopo30) {
800  _location.setGTopo30 (iGTopo30);
801  }
802 
806  void setPageRank (const PageRank_T& iPageRank) {
807  _location.setPageRank (iPageRank);
808  }
809 
813  void setModificationDate (const Date_T& iModDate) {
814  _location.setModificationDate (iModDate);
815  }
816 
820  void setWikiLink (const std::string& iWikiLink) {
821  _location.setWikiLink (iWikiLink);
822  }
823 
827  void setOriginalKeywords (const std::string& iOriginalKeywords) {
828  _location.setOriginalKeywords (iOriginalKeywords);
829  }
830 
834  void setCorrectedKeywords (const std::string& iCorrectedKeywords) {
835  _location.setCorrectedKeywords (iCorrectedKeywords);
836  }
837 
841  void setPercentage (const MatchingPercentage_T& iPercentage) {
842  _location.setPercentage (iPercentage);
843  }
844 
848  void setEditDistance (const NbOfErrors_T& iEditDistance) {
849  _location.setEditDistance (iEditDistance);
850  }
851 
856  void setAllowableEditDistance (const NbOfErrors_T& iAllowableEditDistance) {
857  _location.setAllowableEditDistance (iAllowableEditDistance);
858  }
859 
863  void setRawDataString (const std::string& iRawDataString) {
864  _location.setRawDataString (iRawDataString);
865  }
866 
870  void setDocID (const XapianDocID_T& iDocID) {
871  _docID = iDocID;
872  }
873 
885  bool addTermSet (const Weight_T&, const StringSet_T&);
886 
887 
888  public:
889  // ////////// Setters in underlying names ////////
896  void addName (const LanguageCode_T& iLanguageCode,
897  const std::string& iName) {
898  _location.addName (iLanguageCode, iName);
899  }
900 
904  void resetMatrix() {
905  _location.resetMatrix();
906  }
907 
911  void resetIndexSets();
912 
913 
914  public:
915  // /////////// Business methods /////////
924  const Location& completeLocation();
925 
952  void addNameToXapianSets (const Weight_T&,
953  const LocationName_T&, const FeatureCode_T&,
954  const CityUTFName_T&, const CityASCIIName_T&,
955  const Admin1UTFName_T&, const Admin1ASCIIName_T&,
956  const Admin2UTFName_T&, const Admin2ASCIIName_T&,
957  const StateCode_T&,
958  const CountryCode_T&, const CountryName_T&,
959  const ContinentName_T&, const OTransliterator&);
960 
967  void buildIndexSets (const OTransliterator&);
968 
979  void addNameToXapianSets (const Weight_T&, const std::string& iBaseName,
980  const FeatureCode_T&);
981 
982 
983  public:
984  // ///////// Display methods ////////
990  void toStream (std::ostream&) const;
991 
997  void fromStream (std::istream&);
998 
1002  std::string describeKey() const {
1003  return _location.describeKey();
1004  }
1005 
1009  std::string describeShortKey() const {
1010  return _location.describeShortKey();
1011  }
1012 
1016  std::string toString() const;
1017 
1021  std::string toShortString() const;
1022 
1026  std::string describeSets() const;
1027 
1031  std::string display() const;
1032 
1036  std::string shortDisplay() const;
1037 
1038 
1039  private:
1043  Place (const LocationKey&);
1044 
1048  Place (const Location&);
1049 
1053  Place();
1054 
1058  Place (const Place&);
1059 
1063  virtual ~Place();
1064 
1065 
1066  private:
1067  // ////////////////////// Parent objects ////////////////////
1071  World* _world;
1072 
1077  PlaceHolder* _placeHolder;
1078 
1083  Place* _mainPlace;
1084 
1085 
1086  private:
1087  // ///////////////// Attributes ///////////////////////
1093  Location _location;
1094 
1095 
1096  private:
1097  // ///////////// Full-text matching process support attributes //////////
1104  XapianDocID_T _docID;
1105 
1109  PlaceOrderedList_T _extraPlaceList;
1110 
1114  PlaceOrderedList_T _alternatePlaceList;
1115 
1121  TermSetMap_T _termSetMap;
1122 
1127  StringSet_T _spellingSet;
1128 
1133  StringSet_T _stemmingSet;
1134 
1139  StringSet_T _synonymSet;
1140  };
1141 
1142 }
1143 #endif // __OPENTREP_BOM_PLACE_HPP
void setStateCode(const std::string &iStateCode)
Definition: Location.hpp:589
const PageRank_T & getPageRank() const
Definition: Place.hpp:360
void setEditDistance(const NbOfErrors_T &iEditDistance)
Definition: Place.hpp:848
Class modelling the primary key of a location/POR (point of reference).
Definition: LocationKey.hpp:21
void setAsciiName(const std::string &iName)
Definition: Place.hpp:561
const AltNameShortListString_T & getAltNameShortListString() const
Definition: Place.hpp:122
const Admin3Code_T & getAdmin3Code() const
Definition: Location.hpp:304
void setCityUtfName(const std::string &iCityUtfName)
Definition: Place.hpp:610
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 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
const NameMatrix & getNameMatrix() const
Definition: Place.hpp:381
void setAltCountryCode(const std::string &iCountryCode)
Definition: Location.hpp:575
const Location & getLocation() const
Definition: Place.hpp:51
std::set< std::string > StringSet_T
Definition: Place.hpp:39
const Population_T & getPopulation() const
Definition: Place.hpp:339
const Date_T & getDateFrom() const
Definition: Location.hpp:115
void setModificationDate(const Date_T &iModDate)
Definition: Place.hpp:813
void setFeatureCode(const std::string &iFeatCode)
Definition: Location.hpp:659
void setAdmin1AsciiName(const std::string &iAdminName)
Definition: Location.hpp:680
void setContinentCode(const std::string &iContinentCode)
Definition: Location.hpp:596
void setFeatureClass(const std::string &iFeatClass)
Definition: Place.hpp:715
void setFeatureClass(const std::string &iFeatClass)
Definition: Location.hpp:652
void setGTopo30(const GTopo30_T &iGTopo30)
Definition: Location.hpp:736
void addNameToXapianSets(const Weight_T &, const LocationName_T &, const FeatureCode_T &, const CityUTFName_T &, const CityASCIIName_T &, const Admin1UTFName_T &, const Admin1ASCIIName_T &, const Admin2UTFName_T &, const Admin2ASCIIName_T &, const StateCode_T &, const CountryCode_T &, const CountryName_T &, const ContinentName_T &, const OTransliterator &)
Definition: Place.cpp:296
void setCorrectedKeywords(const std::string &iCorrectedKeywords)
Definition: Location.hpp:789
void setCountryName(const std::string &iCountryName)
Definition: Location.hpp:582
const TimeZone_T & getTimeZone() const
Definition: Place.hpp:227
const GeonamesID_T & getGeonamesID() const
Definition: Place.hpp:79
const IATAType & getIataType() const
Definition: Location.hpp:44
const CityCode_T & getCityCode() const
Definition: Place.hpp:157
void addName(const LanguageCode_T &iLanguageCode, const std::string &iName)
Definition: Place.hpp:896
Structure modelling a (geographical) location.
Definition: Location.hpp:24
void setGTopo30(const GTopo30_T &iGTopo30)
Definition: Place.hpp:799
const Latitude_T & getLatitude() const
Definition: Place.hpp:255
void setDateEnd(const Date_T &iDate)
Definition: Place.hpp:589
const StringSet_T & getSynonymSet() const
Definition: Place.hpp:494
void setPageRank(const PageRank_T &iPageRank)
Definition: Place.hpp:806
void setEnvelopeID(const EnvelopeID_T &iEnvelopeID)
Definition: Location.hpp:512
void setLongitude(const Longitude_T &iLongitude)
Definition: Location.hpp:645
const Admin2UTFName_T & getAdmin2UtfName() const
Definition: Place.hpp:311
double PageRank_T
const Admin1ASCIIName_T & getAdmin1AsciiName() const
Definition: Location.hpp:276
const FeatureCode_T & getFeatureCode() const
Definition: Location.hpp:255
void setRawOffset(const RawOffset_T &iOffset)
Definition: Place.hpp:694
bool addTermSet(const Weight_T &, const StringSet_T &)
Definition: Place.cpp:240
friend class DbaPlace
Definition: Place.hpp:32
unsigned short Weight_T
const CityASCIIName_T & getCityAsciiName() const
Definition: Location.hpp:150
void setCityAsciiName(const std::string &iCityAsciiName)
Definition: Place.hpp:617
const FAACode_T & getFaaCode() const
Definition: Location.hpp:72
void setCorrectedKeywords(const std::string &iCorrectedKeywords)
Definition: Place.hpp:834
const IsGeonames_T & isGeonames() const
Definition: Location.hpp:58
void setIataType(const std::string &iIATAType)
Definition: Place.hpp:525
const NbOfErrors_T & getAllowableEditDistance() const
Definition: Location.hpp:410
const NbOfErrors_T & getEditDistance() const
Definition: Place.hpp:423
const ContinentName_T & getContinentName() const
Definition: Location.hpp:199
void setContinentName(const std::string &iContinentName)
Definition: Place.hpp:666
void setCommonName(const std::string &iName)
Definition: Place.hpp:554
std::string shortDisplay() const
Definition: Place.cpp:200
void setGeonamesID(const GeonamesID_T &iGeonamesID)
Definition: Location.hpp:462
const GTopo30_T & getGTopo30() const
Definition: Place.hpp:353
const FAACode_T & getFaaCode() const
Definition: Place.hpp:100
void setAdmin1UtfName(const std::string &iAdminName)
Definition: Place.hpp:736
const Admin1UTFName_T & getAdmin1UtfName() const
Definition: Location.hpp:269
const FeatureClass_T & getFeatureClass() const
Definition: Place.hpp:269
void setFaaCode(const std::string &iFaaCode)
Definition: Location.hpp:476
void setWikiLink(const std::string &iWikiLink)
Definition: Place.hpp:820
boost::gregorian::date Date_T
void setCountryName(const std::string &iCountryName)
Definition: Place.hpp:652
void setAdmin2AsciiName(const std::string &iAdminName)
Definition: Place.hpp:764
void resetMatrix()
Definition: Place.hpp:904
const TermSetMap_T & getTermSetMap() const
Definition: Place.hpp:466
void setPopulation(const Population_T &iPopulation)
Definition: Place.hpp:785
float GMTOffset_T
void setDSTOffset(const DSTOffset_T &iOffset)
Definition: Location.hpp:624
const ICAOCode_T & getIcaoCode() const
Definition: Place.hpp:93
std::list< std::string > NameList_T
Definition: Names.hpp:20
void setOriginalKeywords(const std::string &iOriginalKeywords)
Definition: Place.hpp:827
void toStream(std::ostream &) const
Definition: Place.cpp:146
const std::string & getCorrectedKeywords() const
Definition: Location.hpp:388
std::string describeShortKey() const
Definition: Place.hpp:1009
void setAdmin2AsciiName(const std::string &iAdminName)
Definition: Location.hpp:701
const Date_T & getDateFrom() const
Definition: Place.hpp:136
bool getNameList(const LanguageCode_T &iLanguageCode, NameList_T &ioNameList) const
Definition: Location.hpp:373
const Date_T & getModificationDate() const
Definition: Location.hpp:346
const WikiLink_T & getWikiLink() const
Definition: Place.hpp:374
const NbOfErrors_T & getAllowableEditDistance() const
Definition: Place.hpp:431
unsigned int Population_T
void setWikiLink(const std::string &iWikiLink)
Definition: Location.hpp:757
const Admin2Code_T & getAdmin2Code() const
Definition: Place.hpp:304
const NameMatrix & getNameMatrix() const
Definition: Location.hpp:360
const Admin2UTFName_T & getAdmin2UtfName() const
Definition: Location.hpp:290
void setAdmin1AsciiName(const std::string &iAdminName)
Definition: Place.hpp:743
const Location & completeLocation()
Definition: Place.cpp:699
void setComment(const std::string &iComment)
Definition: Place.hpp:596
bool getNameList(const LanguageCode_T &iLanguageCode, NameList_T &ioNameList) const
Definition: Place.hpp:394
void setCountryCode(const std::string &iCountryCode)
Definition: Location.hpp:568
const Admin2ASCIIName_T & getAdmin2AsciiName() const
Definition: Place.hpp:318
std::string describeKey() const
Definition: Location.cpp:204
void setCityCode(const std::string &iCityCode)
Definition: Location.hpp:540
void setDSTOffset(const DSTOffset_T &iOffset)
Definition: Place.hpp:687
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
void setLongitude(const Longitude_T &iLongitude)
Definition: Place.hpp:708
const PlaceOrderedList_T & getExtraPlaceList() const
Definition: Place.hpp:452
const std::string & getCorrectedKeywords() const
Definition: Place.hpp:409
const PageRank_T & getPageRank() const
Definition: Location.hpp:339
const DSTOffset_T & getDSTOffset() const
Definition: Place.hpp:241
void setTimeZone(const std::string &iTimeZone)
Definition: Location.hpp:610
void setCityCode(const std::string &iCityCode)
Definition: Place.hpp:603
const GeonamesID_T & getCityGeonamesID() const
Definition: Location.hpp:157
const CountryName_T & getCountryName() const
Definition: Place.hpp:206
void setDateFrom(const Date_T &iDate)
Definition: Place.hpp:582
void setIcaoCode(const std::string &iIcaoCode)
Definition: Location.hpp:469
void setAllowableEditDistance(const NbOfErrors_T &iAllowableEditDistance)
Definition: Place.hpp:856
const GeonamesID_T & getGeonamesID() const
Definition: Location.hpp:51
float DSTOffset_T
const AltNameShortListString_T & getAltNameShortListString() const
Definition: Location.hpp:94
std::map< const Weight_T, StringSet_T > TermSetMap_T
Definition: Place.hpp:40
const EnvelopeID_T & getEnvelopeID() const
Definition: Place.hpp:129
void setModificationDate(const Date_T &iModDate)
Definition: Location.hpp:750
void setLocation(const Location &iLocation)
Definition: Place.hpp:504
void setContinentCode(const std::string &iContinentCode)
Definition: Place.hpp:659
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 Date_T & getDateEnd() const
Definition: Place.hpp:143
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
Class modelling a place/POR (point of reference).
Definition: Place.hpp:28
const IsGeonames_T & isGeonames() const
Definition: Place.hpp:86
std::string describeShortKey() const
Definition: Location.cpp:197
const StateCode_T & getStateCode() const
Definition: Place.hpp:185
const PlaceOrderedList_T & getAlternatePlaceList() const
Definition: Place.hpp:459
void setComment(const std::string &iComment)
Definition: Location.hpp:533
std::string describeKey() const
Definition: Place.hpp:1002
const GeonamesID_T & getCityGeonamesID() const
Definition: Place.hpp:178
void buildIndexSets(const OTransliterator &)
Definition: Place.cpp:445
const Admin3Code_T & getAdmin3Code() const
Definition: Place.hpp:325
void setAdmin3Code(const std::string &iAdminCode)
Definition: Place.hpp:771
const RawOffset_T & getRawOffset() const
Definition: Location.hpp:227
void setFeatureCode(const std::string &iFeatCode)
Definition: Place.hpp:722
const Longitude_T & getLongitude() const
Definition: Place.hpp:262
const RawDataString_T & getRawDataString() const
Definition: Location.hpp:431
const Admin4Code_T & getAdmin4Code() const
Definition: Place.hpp:332
const CityUTFName_T & getCityUtfName() const
Definition: Place.hpp:164
const ASCIIName_T & getAsciiName() const
Definition: Place.hpp:115
const Elevation_T & getElevation() const
Definition: Place.hpp:346
void setAsciiName(const std::string &iName)
Definition: Location.hpp:491
const Elevation_T & getElevation() const
Definition: Location.hpp:325
const ContinentName_T & getContinentName() const
Definition: Place.hpp:220
const IATACode_T & getIataCode() const
Definition: Location.hpp:37
const XapianDocID_T & getDocID() const
Definition: Place.hpp:445
const GMTOffset_T & getGMTOffset() const
Definition: Place.hpp:234
const MatchingPercentage_T & getPercentage() const
Definition: Place.hpp:416
void setAdmin1UtfName(const std::string &iAdminName)
Definition: Location.hpp:673
const Date_T & getModificationDate() const
Definition: Place.hpp:367
void setAltCountryCode(const std::string &iCountryCode)
Definition: Place.hpp:645
void setTimeZone(const std::string &iTimeZone)
Definition: Place.hpp:673
const CommonName_T & getCommonName() const
Definition: Place.hpp:108
std::string display() const
Definition: Place.cpp:211
void setElevation(const Elevation_T &iElevation)
Definition: Place.hpp:792
const Admin2Code_T & getAdmin2Code() const
Definition: Location.hpp:283
void setAltNameShortListString(const std::string &iNameListString)
Definition: Place.hpp:568
GeoCoord_T Longitude_T
const StringSet_T & getStemmingSet() const
Definition: Place.hpp:487
void setContinentName(const std::string &iContinentName)
Definition: Location.hpp:603
void setDateFrom(const Date_T &iDate)
Definition: Location.hpp:519
void fromStream(std::istream &)
Definition: Place.cpp:151
void setIcaoCode(const std::string &iIcaoCode)
Definition: Place.hpp:539
const Comment_T & getComment() const
Definition: Place.hpp:150
void setIataCode(const std::string &iIataCode)
Definition: Location.hpp:448
Base class for the Business Object Model (BOM) layer.
Definition: BomAbstract.hpp:17
StringSet_T getTermSet(const Weight_T &) const
Definition: Place.cpp:226
const Comment_T & getComment() const
Definition: Location.hpp:129
const GTopo30_T & getGTopo30() const
Definition: Location.hpp:332
const StringSet_T & getSpellingSet() const
Definition: Place.hpp:480
void setFaaCode(const std::string &iFaaCode)
Definition: Place.hpp:546
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
const CityASCIIName_T & getCityAsciiName() const
Definition: Place.hpp:171
const CountryCode_T & getCountryCode() const
Definition: Place.hpp:192
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 setDocID(const XapianDocID_T &iDocID)
Definition: Place.hpp:870
void setPageRank(const PageRank_T &iPageRank)
Definition: Location.hpp:743
const CityCode_T & getCityCode() const
Definition: Location.hpp:136
const RawOffset_T & getRawOffset() const
Definition: Place.hpp:248
const std::string & getOriginalKeywords() const
Definition: Location.hpp:381
void setAltNameShortListString(const std::string &iNameListString)
Definition: Location.hpp:498
void setEnvelopeID(const EnvelopeID_T &iEnvelopeID)
Definition: Place.hpp:575
void setCityGeonamesID(const GeonamesID_T &iGeonamesID)
Definition: Location.hpp:561
std::list< Place * > PlaceOrderedList_T
Definition: PlaceList.hpp:21
void setEditDistance(const NbOfErrors_T &iEditDistance)
Definition: Location.hpp:803
std::string toString() const
Definition: Place.cpp:83
const Admin4Code_T & getAdmin4Code() const
Definition: Location.hpp:311
void setDateEnd(const Date_T &iDate)
Definition: Location.hpp:526
void setIataCode(const std::string &iIataCode)
Definition: Place.hpp:518
const FeatureCode_T & getFeatureCode() const
Definition: Place.hpp:276
std::string toShortString() const
Definition: Place.cpp:124
const Admin1ASCIIName_T & getAdmin1AsciiName() const
Definition: Place.hpp:297
const RawDataString_T & getRawDataString() const
Definition: Place.hpp:438
void resetIndexSets()
Definition: Place.cpp:218
const StateCode_T & getStateCode() const
Definition: Location.hpp:164
Enumeration of output types.
Definition: IATAType.hpp:22
void setLatitude(const Latitude_T &iLatitude)
Definition: Place.hpp:701
const Admin1UTFName_T & getAdmin1UtfName() const
Definition: Place.hpp:290
void setAllowableEditDistance(const NbOfErrors_T &iAllowableEditDistance)
Definition: Location.hpp:811
GeoCoord_T Latitude_T
const EnvelopeID_T & getEnvelopeID() const
Definition: Location.hpp:108
void setElevation(const Elevation_T &iElevation)
Definition: Location.hpp:729
void setGMTOffset(const GMTOffset_T &iOffset)
Definition: Place.hpp:680
void setCityUtfName(const std::string &iCityUtfName)
Definition: Location.hpp:547
const LocationKey & getKey() const
Definition: Place.hpp:58
void setAdmin1Code(const std::string &iAdminCode)
Definition: Place.hpp:729
void setRawDataString(const std::string &iRawDataString)
Definition: Location.hpp:832
void setGeonamesID(const GeonamesID_T &iGeonamesID)
Definition: Place.hpp:532
const CountryName_T & getCountryName() const
Definition: Location.hpp:185
void setRawDataString(const std::string &iRawDataString)
Definition: Place.hpp:863
const AltCountryCode_T & getAltCountryCode() const
Definition: Place.hpp:199
const IATACode_T & getIataCode() const
Definition: Place.hpp:65
void addName(const LanguageCode_T &iLanguageCode, const std::string &iName)
Definition: Location.hpp:767
void setPercentage(const MatchingPercentage_T &iPercentage)
Definition: Place.hpp:841
void setCityGeonamesID(const GeonamesID_T &iGeonamesID)
Definition: Place.hpp:624
const ContinentCode_T & getContinentCode() const
Definition: Place.hpp:213
const WikiLink_T & getWikiLink() const
Definition: Location.hpp:353
void setKey(const LocationKey &iKey)
Definition: Place.hpp:511
const ASCIIName_T & getAsciiName() const
Definition: Location.hpp:87
double MatchingPercentage_T
const DSTOffset_T & getDSTOffset() const
Definition: Location.hpp:220
const IATAType & getIataType() const
Definition: Place.hpp:72
const GMTOffset_T & getGMTOffset() const
Definition: Location.hpp:213
const std::string & getOriginalKeywords() const
Definition: Place.hpp:402
std::string describeSets() const
Definition: Place.cpp:155
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
const Admin1Code_T & getAdmin1Code() const
Definition: Place.hpp:283
void setPopulation(const Population_T &iPopulation)
Definition: Location.hpp:722
void setCountryCode(const std::string &iCountryCode)
Definition: Place.hpp:638
void setStateCode(const std::string &iStateCode)
Definition: Place.hpp:631
void setIataType(const IATAType &iIATAType)
Definition: Location.hpp:455
void setAdmin2UtfName(const std::string &iAdminName)
Definition: Place.hpp:757
const TimeZone_T & getTimeZone() const
Definition: Location.hpp:206
const Longitude_T & getLongitude() const
Definition: Location.hpp:241
void setAdmin4Code(const std::string &iAdminCode)
Definition: Place.hpp:778
void setAdmin2Code(const std::string &iAdminCode)
Definition: Place.hpp:750
void setAdmin2Code(const std::string &iAdminCode)
Definition: Location.hpp:687