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 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().