OpenTREP Logo  0.07.18
C++ Open Travel Request Parsing Library
Loading...
Searching...
No Matches
OPENTREP::LocationExchange Class Reference

Utility class to export Opentrep structures in a Protobuf format. More...

#include <opentrep/bom/LocationExchange.hpp>

Static Public Member Functions

static std::string exportLocationList (const LocationList_T &, const WordList_T &iNonMatchedWordList)
 
static void exportLocation (treppb::Place &, const Location &)
 

Detailed Description

Utility class to export Opentrep structures in a Protobuf format.

Definition at line 26 of file LocationExchange.hpp.

Member Function Documentation

◆ exportLocationList()

std::string OPENTREP::LocationExchange::exportLocationList ( const LocationList_T & iLocationList,
const WordList_T & iNonMatchedWordList )
static

Export (dump in the underlying output log stream and in Protobuf format) a list of Location objects.

Returns
std::string& Output string in which the Location objects are logged/dumped.
Parameters
constLocationList_T& List of Location objects to be exported.
constWordList_T& The list of non-matching keywords.

Definition at line 18 of file LocationExchange.cpp.

References exportLocation().

◆ exportLocation()

void OPENTREP::LocationExchange::exportLocation ( treppb::Place & ioPlace,
const Location & iLocation )
static

Export (dump in the underlying output log stream and in Protobuf format) a Location object.

Parameters
treppb::Place&Protobuf holder in which the Location structure should be logged/dumped.
constLocation& Location object to be exported.

Definition at line 82 of file LocationExchange.cpp.

References exportLocation(), OPENTREP::Location::getAdmin1AsciiName(), OPENTREP::Location::getAdmin1Code(), OPENTREP::Location::getAdmin1UtfName(), OPENTREP::Location::getAdmin2AsciiName(), OPENTREP::Location::getAdmin2Code(), OPENTREP::Location::getAdmin2UtfName(), OPENTREP::Location::getAdmin3Code(), OPENTREP::Location::getAdmin4Code(), OPENTREP::Location::getAllowableEditDistance(), OPENTREP::Location::getAltCountryCode(), OPENTREP::Location::getAlternateLocationList(), OPENTREP::CityDetails::getAsciiName(), OPENTREP::Location::getAsciiName(), OPENTREP::Location::getCityList(), OPENTREP::Location::getComment(), OPENTREP::Location::getCommonName(), OPENTREP::Location::getContinentCode(), OPENTREP::Location::getContinentName(), OPENTREP::Location::getCorrectedKeywords(), OPENTREP::Location::getCountryCode(), OPENTREP::Location::getCountryName(), OPENTREP::Location::getCurrencyCode(), OPENTREP::Location::getDateEnd(), OPENTREP::Location::getDateFrom(), OPENTREP::Location::getDSTOffset(), OPENTREP::Location::getEditDistance(), OPENTREP::Location::getElevation(), OPENTREP::Location::getEnvelopeID(), OPENTREP::Location::getExtraLocationList(), OPENTREP::Location::getFaaCode(), OPENTREP::Location::getFeatureClass(), OPENTREP::Location::getFeatureCode(), OPENTREP::Location::getGeonameLatitude(), OPENTREP::Location::getGeonameLongitude(), OPENTREP::CityDetails::getGeonamesID(), OPENTREP::LocationKey::getGeonamesID(), OPENTREP::Location::getGMTOffset(), OPENTREP::Location::getGTopo30(), OPENTREP::CityDetails::getIataCode(), OPENTREP::LocationKey::getIataCode(), OPENTREP::LocationKey::getIataType(), OPENTREP::Location::getIcaoCode(), OPENTREP::Location::getKey(), OPENTREP::Names::getLanguageCode(), OPENTREP::Location::getLatitude(), OPENTREP::Location::getLongitude(), OPENTREP::Location::getModificationDate(), OPENTREP::Names::getNameList(), OPENTREP::Location::getNameMatrix(), OPENTREP::NameMatrix::getNameMatrix(), OPENTREP::Location::getOriginalKeywords(), OPENTREP::Location::getPageRank(), OPENTREP::Location::getPercentage(), OPENTREP::Location::getPopulation(), OPENTREP::Location::getRawOffset(), OPENTREP::Location::getStateCode(), OPENTREP::Location::getTimeZone(), OPENTREP::Location::getTvlPORListString(), OPENTREP::IATAType::getTypeAsPB(), OPENTREP::Location::getUICCodeList(), OPENTREP::Location::getUNLOCodeList(), OPENTREP::CityDetails::getUtfName(), OPENTREP::Location::getWAC(), OPENTREP::Location::getWACName(), OPENTREP::Location::getWikiLink(), and OPENTREP::Location::isGeonames().

Referenced by exportLocation(), and exportLocationList().


The documentation for this class was generated from the following files: