StdAir Logo  1.00.5
C++ Standard Airline IT Object Library
stdair::BomJSONExport Class Reference

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 &)
 

Detailed Description

Utility class to export StdAir objects in a JSON format.

Definition at line 42 of file BomJSONExport.hpp.

Member Function Documentation

◆ jsonExportFlightDateList()

void stdair::BomJSONExport::jsonExportFlightDateList ( std::ostream &  oStream,
const BomRoot iBomRoot,
const AirlineCode_T iAirlineCode = "all",
const FlightNumber_T iFlightNumber = 0 
)
static

Export (dump in the underlying output log stream and in JSON format) a list of flight date objects.

Parameters
std::ostream&Output stream in which the flight date objects should be logged/dumped.
constBomRoot& Root of the BOM tree containing flight-dates to be exported.
constAirlineCode& Airline for which the flight-dates should be displayed. If set to "all" (default), all the inventories will be displayed.
constFlightNumber_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().

◆ jsonExportFlightDateObjects()

void stdair::BomJSONExport::jsonExportFlightDateObjects ( std::ostream &  oStream,
const FlightDate iFlightDate 
)
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.

Parameters
std::ostream&Output stream in which the BOM tree should be logged/dumped.
constFlightDate& 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().

◆ jsonExportBookingRequestObject()

◆ jsonExportBreakPointObject()

void stdair::BomJSONExport::jsonExportBreakPointObject ( std::ostream &  oStream,
const EventStruct iEventStruct 
)
static

Export (dump in the underlying output log stream and in JSON format) the break point object contained in the event structure.

Parameters
std::ostream&Output stream in which the events should be logged/dumped.
constEventStruct& 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().


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