StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
stdair::BookingRequestStruct Struct Reference

Structure holding the elements of a booking request. More...

#include <stdair/bom/BookingRequestStruct.hpp>

+ Inheritance diagram for stdair::BookingRequestStruct:

List of all members.

Public Member Functions

const DemandGeneratorKey_TgetDemandGeneratorKey () const
const AirportCode_TgetOrigin () const
const AirportCode_TgetDestination () const
const CityCode_TgetPOS () const
const Date_TgetPreferedDepartureDate () const
const Duration_TgetPreferredDepartureTime () const
const DateTime_TgetRequestDateTime () const
const CabinCode_TgetPreferredCabin () const
const NbOfSeats_TgetPartySize () const
const ChannelLabel_TgetBookingChannel () const
const TripType_TgetTripType () const
const DayDuration_TgetStayDuration () const
const FrequentFlyer_TgetFrequentFlyerType () const
const WTP_TgetWTP () const
const PriceValue_TgetValueOfTime () const
void toStream (std::ostream &ioOut) const
void fromStream (std::istream &ioIn)
const std::string describe () const
const std::string display () const
 BookingRequestStruct (const DemandGeneratorKey_T &iGeneratorKey, const AirportCode_T &iOrigin, const AirportCode_T &iDestination, const CityCode_T &iPOS, const Date_T &iDepartureDate, const DateTime_T &iRequestDateTime, const CabinCode_T &iPreferredCabin, const NbOfSeats_T &iPartySize, const ChannelLabel_T &iChannel, const TripType_T &iTripType, const DayDuration_T &iStayDuration, const FrequentFlyer_T &iFrequentFlyerType, const Duration_T &iPreferredDepartureTime, const WTP_T &iWTP, const PriceValue_T &iValueOfTime)
 BookingRequestStruct (const AirportCode_T &iOrigin, const AirportCode_T &iDestination, const CityCode_T &iPOS, const Date_T &iDepartureDate, const DateTime_T &iRequestDateTime, const CabinCode_T &iPreferredCabin, const NbOfSeats_T &iPartySize, const ChannelLabel_T &iChannel, const TripType_T &iTripType, const DayDuration_T &iStayDuration, const FrequentFlyer_T &iFrequentFlyerType, const Duration_T &iPreferredDepartureTime, const WTP_T &iWTP, const PriceValue_T &iValueOfTime)
 BookingRequestStruct (const BookingRequestStruct &)
 ~BookingRequestStruct ()

Detailed Description

Structure holding the elements of a booking request.

Definition at line 21 of file BookingRequestStruct.hpp.


Constructor & Destructor Documentation

stdair::BookingRequestStruct::BookingRequestStruct ( const DemandGeneratorKey_T iGeneratorKey,
const AirportCode_T iOrigin,
const AirportCode_T iDestination,
const CityCode_T iPOS,
const Date_T iDepartureDate,
const DateTime_T iRequestDateTime,
const CabinCode_T iPreferredCabin,
const NbOfSeats_T iPartySize,
const ChannelLabel_T iChannel,
const TripType_T iTripType,
const DayDuration_T iStayDuration,
const FrequentFlyer_T iFrequentFlyerType,
const Duration_T iPreferredDepartureTime,
const WTP_T iWTP,
const PriceValue_T iValueOfTime 
)

Default constructor.

Definition at line 57 of file BookingRequestStruct.cpp.

stdair::BookingRequestStruct::BookingRequestStruct ( const AirportCode_T iOrigin,
const AirportCode_T iDestination,
const CityCode_T iPOS,
const Date_T iDepartureDate,
const DateTime_T iRequestDateTime,
const CabinCode_T iPreferredCabin,
const NbOfSeats_T iPartySize,
const ChannelLabel_T iChannel,
const TripType_T iTripType,
const DayDuration_T iStayDuration,
const FrequentFlyer_T iFrequentFlyerType,
const Duration_T iPreferredDepartureTime,
const WTP_T iWTP,
const PriceValue_T iValueOfTime 
)

Constructor without the demand generator key, used for batches.

Definition at line 85 of file BookingRequestStruct.cpp.

Copy constructor.

Definition at line 37 of file BookingRequestStruct.cpp.


Member Function Documentation

Get the demand generator key.

Definition at line 25 of file BookingRequestStruct.hpp.

Get the requested origin.

Definition at line 30 of file BookingRequestStruct.hpp.

Get the requested destination.

Definition at line 35 of file BookingRequestStruct.hpp.

Get the point-of-sale.

Definition at line 40 of file BookingRequestStruct.hpp.

Get the requested departure date.

Definition at line 45 of file BookingRequestStruct.hpp.

Get the preferred departure time.

Definition at line 50 of file BookingRequestStruct.hpp.

Get the request datetime.

Definition at line 55 of file BookingRequestStruct.hpp.

Get the preferred cabin.

Definition at line 60 of file BookingRequestStruct.hpp.

Get the party size.

Definition at line 65 of file BookingRequestStruct.hpp.

Get the reservation channel.

Definition at line 70 of file BookingRequestStruct.hpp.

Get the trip type.

Definition at line 75 of file BookingRequestStruct.hpp.

Get the duration of stay.

Definition at line 80 of file BookingRequestStruct.hpp.

Get the frequent flyer type.

Definition at line 85 of file BookingRequestStruct.hpp.

const WTP_T& stdair::BookingRequestStruct::getWTP ( ) const [inline]

Get the willingness-to-pay.

Definition at line 90 of file BookingRequestStruct.hpp.

Get the value of time.

Definition at line 95 of file BookingRequestStruct.hpp.

void stdair::BookingRequestStruct::toStream ( std::ostream &  ioOut) const

Dump a Business Object into an output stream.

Parameters:
ostream&the output stream.

Reimplemented from stdair::StructAbstract.

Definition at line 115 of file BookingRequestStruct.cpp.

References describe().

void stdair::BookingRequestStruct::fromStream ( std::istream &  ioIn) [virtual]

Read a Business Object from an input stream.

Parameters:
istream&the input stream.

Reimplemented from stdair::StructAbstract.

Definition at line 120 of file BookingRequestStruct.cpp.

const std::string stdair::BookingRequestStruct::describe ( ) const [virtual]

Display of the structure.

Implements stdair::StructAbstract.

Definition at line 124 of file BookingRequestStruct.cpp.

Referenced by toStream().

const std::string stdair::BookingRequestStruct::display ( ) const

Display of the structure.

  • #id,
  • request_date (YYMMDD),
  • request_time (HHMMSS),
  • POS (three-letter code),
  • Channel (two-letter code):
    • 'D' for direct or 'I' for indirect,
    • 'N' for oNline or 'F' for oFfline,
  • Origin (three-letter code),
  • Destination (three-letter code),
  • Preferred departure date (YYMMDD),
  • Preferred departure time (HHMM),
  • Min departure time (HHMM),
  • Max departure time (HHMM),
  • Preferred arrival date (YYMMDD),
  • Preferred arrival time (HHMM),
  • Preferred cabin:
    • 'F' for first,
    • 'C' for club/business,
    • 'W' for economy plus,
    • 'M' for economy,
  • Trip type:
    • 'OW' for a one-way trip,
    • 'RO' for the outbound part of a rount-trip,
    • 'RI' for the inbound part of a rount-trip,
  • Duration of stay (expressed as a number of days),
  • Frequent flyer tier:
    • 'G' for gold,
    • 'S' for silver,
    • 'K' for basic,
    • 'N' for none,
  • Willingness-to-pay (WTP, expressed as a monetary unit, e.g., EUR),
  • Disutility per stop (expressed as a monetary unit, e.g., EUR),
  • Value of time (EUR per hour),
Returns:
const std::string The output of the booking request structure.

Definition at line 147 of file BookingRequestStruct.cpp.

References stdair::TRIP_TYPE_ONE_WAY.


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