1 #ifndef __OPENTREP_LOCATION_HPP
2 #define __OPENTREP_LOCATION_HPP
95 return _altNameShortListString;
102 return _tvlPORListString;
151 return _cityAsciiName;
158 return _cityGeonamesID;
179 return _altCountryCode;
193 return _continentCode;
200 return _continentName;
270 return _admin1UtfName;
277 return _admin1AsciiName;
291 return _admin2UtfName;
298 return _admin2AsciiName;
347 return _modificationDate;
375 return _nameMatrix.
getNameList (iLanguageCode, ioNameList);
382 return _originalKeywords;
389 return _correctedKeywords;
403 return _editDistance;
411 return _allowableEditDistance;
418 return _extraLocationList;
425 return _alternateLocationList;
432 return _rawDataString;
513 _envelopeID = iEnvelopeID;
562 _cityGeonamesID = iGeonamesID;
618 _gmtOffset = iOffset;
625 _dstOffset = iOffset;
632 _rawOffset = iOffset;
639 _latitude = iLatitude;
646 _longitude = iLongitude;
723 _population = iPopulation;
730 _elevation = iElevation;
744 _pageRank = iPageRank;
751 _modificationDate = iModDate;
768 const std::string& iName) {
769 _nameMatrix.
addName (iLanguageCode, iName);
783 _originalKeywords = iOriginalKeywords;
790 _correctedKeywords = iCorrectedKeywords;
797 _percentage = iPercentage;
804 _editDistance = iEditDistance;
812 _allowableEditDistance = iAllowableEditDistance;
819 _extraLocationList.push_back (iExtraLocation);
826 _alternateLocationList.push_back (iAlternateLocation);
880 void toStream (std::ostream&)
const;
956 const std::string& iOriginalKeywords,
957 const std::string& iCorrectedKeywords,
1201 Date_T _modificationDate;
1230 std::string _originalKeywords;
1235 std::string _correctedKeywords;
1292 #endif // __OPENTREP_LOCATION_HPP
void setStateCode(const std::string &iStateCode)
void fromStream(std::istream &)
TvlPORList_T _itTvlPORList
Class modelling the primary key of a location/POR (point of reference).
const Admin3Code_T & getAdmin3Code() const
const Admin1Code_T & getAdmin1Code() const
void setAdmin4Code(const std::string &iAdminCode)
const CountryCode_T & getCountryCode() const
void setIataCode(const std::string &iIataCode)
void setCityAsciiName(const std::string &iCityAsciiName)
const Latitude_T & getLatitude() const
const Population_T & getPopulation() const
bool getNameList(const LanguageCode_T &, NameList_T &) const
void setAltCountryCode(const std::string &iCountryCode)
void consolidateAltNameShortListString()
void addExtraLocation(const Location &iExtraLocation)
const Date_T & getDateFrom() const
void setFeatureCode(const std::string &iFeatCode)
void setAdmin1AsciiName(const std::string &iAdminName)
const IATAType & getIataType() const
void setContinentCode(const std::string &iContinentCode)
void setFeatureClass(const std::string &iFeatClass)
std::string toSingleLocationString() const
void setGTopo30(const GTopo30_T &iGTopo30)
std::string _itLangCodeExt
void addName(const LanguageCode_T &, const std::string &iName)
void setCorrectedKeywords(const std::string &iCorrectedKeywords)
Date_T calculateDate() const
void setCountryName(const std::string &iCountryName)
LanguageCode_T _itLanguageCode
const IATAType & getIataType() const
Structure modelling a (geographical) location.
void setEnvelopeID(const EnvelopeID_T &iEnvelopeID)
void setLongitude(const Longitude_T &iLongitude)
const Admin1ASCIIName_T & getAdmin1AsciiName() const
const FeatureCode_T & getFeatureCode() const
const CityASCIIName_T & getCityAsciiName() const
const FAACode_T & getFaaCode() const
const IsGeonames_T & isGeonames() const
const NbOfErrors_T & getAllowableEditDistance() const
const ContinentName_T & getContinentName() const
std::string toShortString() const
void setGeonamesID(const GeonamesID_T &iGeonamesID)
const Admin1UTFName_T & getAdmin1UtfName() const
static FeatureNameList_T getFeatureList(const FeatureCode_T &)
void setFaaCode(const std::string &iFaaCode)
std::list< FeatureName_T > FeatureNameList_T
boost::gregorian::date Date_T
const LocationList_T & getAlternateLocationList() const
void setDSTOffset(const DSTOffset_T &iOffset)
std::list< std::string > NameList_T
const std::string & getCorrectedKeywords() const
const TvlPORListString_T & getTvlPORListString() const
void setAdmin2AsciiName(const std::string &iAdminName)
bool getNameList(const LanguageCode_T &iLanguageCode, NameList_T &ioNameList) const
const Date_T & getModificationDate() const
unsigned int Population_T
void setWikiLink(const std::string &iWikiLink)
const NameMatrix & getNameMatrix() const
const Admin2UTFName_T & getAdmin2UtfName() const
std::list< TvlPORListString_T > TvlPORList_T
void setCountryCode(const std::string &iCountryCode)
std::string describeKey() const
void setCityCode(const std::string &iCityCode)
void setGMTOffset(const GMTOffset_T &iOffset)
const Date_T & getDateEnd() const
const AltCountryCode_T & getAltCountryCode() const
const PageRank_T & getPageRank() const
void setTimeZone(const std::string &iTimeZone)
const GeonamesID_T & getCityGeonamesID() const
void setIcaoCode(const std::string &iIcaoCode)
const GeonamesID_T & getGeonamesID() const
const AltNameShortListString_T & getAltNameShortListString() const
void setModificationDate(const Date_T &iModDate)
const ICAOCode_T & getIcaoCode() const
const CommonName_T & getCommonName() const
unsigned short NbOfErrors_T
void setPercentage(const MatchingPercentage_T &iPercentage)
void setOriginalKeywords(const std::string &iOriginalKeywords)
const MatchingPercentage_T & getPercentage() const
const NbOfErrors_T & getEditDistance() const
const FeatureClass_T & getFeatureClass() const
void setCommonName(const std::string &iName)
const CityUTFName_T & getCityUtfName() const
std::list< Location > LocationList_T
std::string describeShortKey() const
void setGeonamesID(const GeonamesID_T &iGeonamesID)
void setComment(const std::string &iComment)
void setTvlPORListString(const std::string &iPORListString)
const RawOffset_T & getRawOffset() const
const RawDataString_T & getRawDataString() const
std::string toString() const
std::string toBasicString() const
void setAsciiName(const std::string &iName)
const GeonamesID_T & getGeonamesID() const
const Elevation_T & getElevation() const
const IATACode_T & getIataCode() const
AltNameShortList_T _itAltNameShortList
Language::EN_Language _itLanguageCodeNum
void setAdmin1UtfName(const std::string &iAdminName)
std::string _itLangCodeHist
const Admin2Code_T & getAdmin2Code() const
void setContinentName(const std::string &iContinentName)
void setDateFrom(const Date_T &iDate)
const IsGeonames_T & isGeonames() const
void setIataCode(const std::string &iIataCode)
const Comment_T & getComment() const
const GTopo30_T & getGTopo30() const
const LocationList_T & getExtraLocationList() const
void setAdmin3Code(const std::string &iAdminCode)
const LocationKey & getKey() const
const Admin2ASCIIName_T & getAdmin2AsciiName() const
void setLatitude(const Latitude_T &iLatitude)
void setAdmin1Code(const std::string &iAdminCode)
const ContinentCode_T & getContinentCode() const
void setPageRank(const PageRank_T &iPageRank)
const CityCode_T & getCityCode() const
void consolidateTvlPORListString()
const std::string & getOriginalKeywords() const
void setAltNameShortListString(const std::string &iNameListString)
void addAlternateLocation(const Location &iAlternateLocation)
void setCityGeonamesID(const GeonamesID_T &iGeonamesID)
void setEditDistance(const NbOfErrors_T &iEditDistance)
const Admin4Code_T & getAdmin4Code() const
void setDateEnd(const Date_T &iDate)
const StateCode_T & getStateCode() const
Enumeration of output types.
void setAllowableEditDistance(const NbOfErrors_T &iAllowableEditDistance)
void setIataType(const IATAType &iIATAType)
const EnvelopeID_T & getEnvelopeID() const
void setElevation(const Elevation_T &iElevation)
void setCityUtfName(const std::string &iCityUtfName)
void setRawDataString(const std::string &iRawDataString)
const CountryName_T & getCountryName() const
void addName(const LanguageCode_T &iLanguageCode, const std::string &iName)
const WikiLink_T & getWikiLink() const
const IATACode_T & getIataCode() const
const ASCIIName_T & getAsciiName() const
double MatchingPercentage_T
const DSTOffset_T & getDSTOffset() const
void toStream(std::ostream &) const
std::string _itLangCode2Char
const GMTOffset_T & getGMTOffset() const
void setRawOffset(const RawOffset_T &iOffset)
void setKey(const LocationKey &iKey)
void setAdmin2UtfName(const std::string &iAdminName)
void setPopulation(const Population_T &iPopulation)
void setIataType(const IATAType &iIATAType)
std::list< AltNameShortListString_T > AltNameShortList_T
const TimeZone_T & getTimeZone() const
const Longitude_T & getLongitude() const
void setAdmin2Code(const std::string &iAdminCode)