OpenTREP Logo  0.6.0
C++ Open Travel Request Parsing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OPENTREP::BomJSONExport Class Reference

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

#include <opentrep/bom/BomJSONExport.hpp>

Static Public Member Functions

static void jsonExportLocationList (std::ostream &, const LocationList_T &)
 
static void jsonExportLocation (bpt::ptree &, const Location &)
 

Detailed Description

Utility class to export Opentrep structures in a JSON format.

Definition at line 25 of file BomJSONExport.hpp.

Member Function Documentation

void OPENTREP::BomJSONExport::jsonExportLocationList ( std::ostream &  oStream,
const LocationList_T iLocationList 
)
static

Export (dump in the underlying output log stream and in JSON 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.

Definition at line 17 of file BomJSONExport.cpp.

References OPENTREP::Location::getAlternateLocationList(), OPENTREP::Location::getExtraLocationList(), and jsonExportLocation().

void OPENTREP::BomJSONExport::jsonExportLocation ( bpt::ptree &  ioPTLocation,
const Location iLocation 
)
static

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

Parameters
bpt::ptree&Property tree in which the Location structure should be logged/dumped.
constLocation& Location object to be exported.

Definition at line 92 of file BomJSONExport.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::getCityAsciiName(), OPENTREP::Location::getCityCode(), OPENTREP::Location::getCityUtfName(), OPENTREP::Location::getContinentName(), OPENTREP::Location::getCorrectedKeywords(), OPENTREP::Location::getCountryCode(), OPENTREP::Location::getCountryName(), OPENTREP::Location::getEditDistance(), OPENTREP::Location::getFaaCode(), OPENTREP::Location::getGeonamesID(), OPENTREP::Location::getIataCode(), OPENTREP::Location::getIcaoCode(), OPENTREP::Location::getLatitude(), OPENTREP::Location::getLongitude(), OPENTREP::Names::getNameList(), OPENTREP::NameMatrix::getNameMatrix(), OPENTREP::Location::getNameMatrix(), OPENTREP::Location::getOriginalKeywords(), OPENTREP::Location::getPageRank(), OPENTREP::Location::getPercentage(), OPENTREP::Location::getStateCode(), OPENTREP::Location::getTimeZone(), OPENTREP::Location::getTvlPORListString(), and OPENTREP::Location::getWikiLink().

Referenced by jsonExportLocationList().


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