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 &) |
Utility class to export Opentrep structures in a JSON format.
Definition at line 25 of file BomJSONExport.hpp.
|
static |
Export (dump in the underlying output log stream and in JSON format) a list of Location objects.
std::ostream& | Output stream in which the Location objects should be logged/dumped. |
const | LocationList_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().
|
static |
Export (dump in the underlying output log stream and in JSON format) a Location object.
bpt::ptree& | Property tree in which the Location structure should be logged/dumped. |
const | Location& Location object to be exported. |
Definition at line 93 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::getAltCountryCode(), OPENTREP::CityDetails::getAsciiName(), OPENTREP::Location::getAsciiName(), OPENTREP::Location::getCityList(), 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::getFaaCode(), OPENTREP::Location::getFeatureClass(), OPENTREP::Location::getFeatureCode(), OPENTREP::Location::getGeonameLatitude(), OPENTREP::Location::getGeonameLongitude(), OPENTREP::CityDetails::getGeonamesID(), OPENTREP::Location::getGeonamesID(), OPENTREP::Location::getGMTOffset(), OPENTREP::Location::getGTopo30(), OPENTREP::CityDetails::getIataCode(), OPENTREP::Location::getIataCode(), OPENTREP::Location::getIcaoCode(), 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::Location::getUNLOCodeList(), OPENTREP::CityDetails::getUtfName(), OPENTREP::Location::getWAC(), OPENTREP::Location::getWACName(), and OPENTREP::Location::getWikiLink().
Referenced by jsonExportLocationList().