Utility class to export StdAir objects in a JSON format. More...
#include <stdair/bom/BomJSONExport.hpp>
Static Public Member Functions | |
static void | jsonExportFlightDateList (std::ostream &, const BomRoot &, const AirlineCode_T &iAirlineCode="all", const FlightNumber_T &iFlightNumber=0) |
static void | jsonExportFlightDateObjects (std::ostream &, const FlightDate &) |
static void | jsonExportBookingRequestObject (std::ostream &, const EventStruct &) |
static void | jsonExportBreakPointObject (std::ostream &, const EventStruct &) |
Utility class to export StdAir objects in a JSON format.
Definition at line 42 of file BomJSONExport.hpp.
|
static |
Export (dump in the underlying output log stream and in JSON format) a list of flight date objects.
std::ostream& | Output stream in which the flight date objects should be logged/dumped. |
const | BomRoot& Root of the BOM tree containing flight-dates to be exported. |
const | AirlineCode& Airline for which the flight-dates should be displayed. If set to "all" (default), all the inventories will be displayed. |
const | FlightNumber_T& Flight number for which all the departure dates should be displayed. If set to 0 (the default), all the flight numbers will be displayed. |
Definition at line 35 of file BomJSONExport.cpp.
References stdair::Inventory::getAirlineCode(), stdair::FlightDate::getDepartureDate(), stdair::FlightDate::getFlightNumber(), and jsonExportFlightDateObjects().
Referenced by stdair::STDAIR_Service::jsonExportFlightDateList().
|
static |
Recursively export (dump in the underlying output log stream and in JSON format) the objects of the BOM tree using the given FlightDate as root.
std::ostream& | Output stream in which the BOM tree should be logged/dumped. |
const | FlightDate& Root of the BOM tree to be exported. |
Definition at line 163 of file BomJSONExport.cpp.
References stdair::FlightDate::getAirlineCode(), stdair::BookingClass::getAuthorizationLevel(), stdair::LegCabin::getAuthorizationLevel(), stdair::Bucket::getAvailability(), stdair::LegCabin::getAvailability(), stdair::LegCabin::getAvailabilityPool(), stdair::LegCabin::getAvgCancellationPercentage(), stdair::LegCabin::getBidPriceVector(), stdair::LegDate::getBoardingDate(), stdair::LegDate::getBoardingPoint(), stdair::LegDate::getBoardingTime(), stdair::LegCabin::getCabinCode(), stdair::BookingClass::getCancellationPercentage(), stdair::LegDate::getCapacity(), stdair::LegCabin::getCommittedSpace(), stdair::LegCabin::getCurrentBidPrice(), stdair::LegDate::getDateOffset(), stdair::FlightDate::getDepartureDate(), stdair::LegDate::getDistance(), stdair::LegDate::getElapsedTime(), stdair::BookingClass::getETB(), stdair::LegCabin::getETB(), stdair::FlightDate::getFlightNumber(), stdair::LegCabin::getGrossAvailability(), stdair::LegCabin::getGroupNbOfSeats(), stdair::BookingClass::getNbOfBookings(), stdair::BookingClass::getNbOfGroupBookings(), stdair::BookingClass::getNbOfStaffBookings(), stdair::BookingClass::getNbOfWLBookings(), stdair::BookingClass::getNegotiatedSpace(), stdair::LegCabin::getNetAvailability(), stdair::BookingClass::getNetClassAvailability(), stdair::BookingClass::getNetRevenueAvailability(), stdair::BookingClass::getNoShowPercentage(), stdair::LegDate::getOffDate(), stdair::LegCabin::getOfferedCapacity(), stdair::LegDate::getOffPoint(), stdair::LegDate::getOffTime(), stdair::LegCabin::getPhysicalCapacity(), stdair::LegCabin::getRegradeAdjustment(), stdair::Bucket::getSeatIndex(), stdair::BookingClass::getSegmentAvailability(), stdair::LegCabin::getSoldSeat(), stdair::Bucket::getSoldSeats(), stdair::LegCabin::getStaffNbOfSeats(), stdair::LegDate::getTimeOffset(), stdair::LegCabin::getUPR(), stdair::LegCabin::getWLNbOfSeats(), stdair::Bucket::getYieldRangeUpperValue(), jsonExportBookingRequestObject(), stdair::BookingClass::toString(), stdair::SegmentCabin::toString(), and stdair::SegmentDate::toString().
Referenced by jsonExportFlightDateList(), and stdair::STDAIR_Service::jsonExportFlightDateObjects().
|
static |
Export (dump in the underlying output log stream and in JSON format) the booking request object contained in the event structure.
std::ostream& | Output stream in which the events should be logged/dumped. |
const | EventStruct& Booking request to be stored in JSON-ified format. |
Definition at line 660 of file BomJSONExport.cpp.
References stdair::EventType::BKG_REQ, stdair::BookingRequestStruct::getBookingChannel(), stdair::EventStruct::getBookingRequest(), stdair::BookingRequestStruct::getDestination(), stdair::EventStruct::getEventType(), stdair::EventType::getLabel(), stdair::BookingRequestStruct::getOrigin(), stdair::BookingRequestStruct::getPartySize(), stdair::BookingRequestStruct::getPOS(), stdair::BookingRequestStruct::getPreferedDepartureDate(), stdair::BookingRequestStruct::getPreferredCabin(), stdair::BookingRequestStruct::getPreferredDepartureTime(), stdair::BookingRequestStruct::getRequestDateTime(), stdair::BookingRequestStruct::getStayDuration(), stdair::BookingRequestStruct::getWTP(), and jsonExportBreakPointObject().
Referenced by stdair::STDAIR_Service::jsonExportEventObject(), and jsonExportFlightDateObjects().
|
static |
Export (dump in the underlying output log stream and in JSON format) the break point object contained in the event structure.
std::ostream& | Output stream in which the events should be logged/dumped. |
const | EventStruct& Break point to be stored in JSON-ified format. |
Definition at line 749 of file BomJSONExport.cpp.
References stdair::EventType::BRK_PT, stdair::EventStruct::getBreakPoint(), stdair::BreakPointStruct::getBreakPointTime(), stdair::EventStruct::getEventType(), and stdair::EventType::getLabel().
Referenced by jsonExportBookingRequestObject(), and stdair::STDAIR_Service::jsonExportEventObject().