OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 void exportLocationList (std::ostream &, 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

void OPENTREP::LocationExchange::exportLocationList ( std::ostream &  oStream,
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.

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

Definition at line 19 of file LocationExchange.cpp.

References 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 73 of file LocationExchange.cpp.

References 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::Location::getAsciiName(), OPENTREP::Location::getCityAsciiName(), OPENTREP::Location::getCityCode(), OPENTREP::Location::getCityUtfName(), OPENTREP::Location::getComment(), OPENTREP::Location::getCommonName(), OPENTREP::Location::getContinentCode(), OPENTREP::Location::getContinentName(), OPENTREP::Location::getCorrectedKeywords(), OPENTREP::Location::getCountryCode(), OPENTREP::Location::getCountryName(), OPENTREP::Location::getDateEnd(), OPENTREP::Location::getDateFrom(), OPENTREP::Location::getDSTOffset(), OPENTREP::Location::getEditDistance(), OPENTREP::Location::getElevation(), OPENTREP::Location::getExtraLocationList(), OPENTREP::Location::getFaaCode(), OPENTREP::Location::getFeatureClass(), OPENTREP::Location::getFeatureCode(), OPENTREP::LocationKey::getGeonamesID(), OPENTREP::Location::getGMTOffset(), OPENTREP::Location::getGTopo30(), 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::NameMatrix::getNameMatrix(), OPENTREP::Location::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(), and OPENTREP::Location::getWikiLink().

Referenced by exportLocationList().


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