AirInv Logo  1.00.8
C++ Simulated Airline Inventory Management System Library
Loading...
Searching...
No Matches
BookingClassStruct.cpp
Go to the documentation of this file.
1// //////////////////////////////////////////////////////////////////////
2// Import section
3// //////////////////////////////////////////////////////////////////////
4// STL
5#include <cassert>
6#include <sstream>
7// StdAir
8#include <stdair/basic/BasConst_General.hpp>
9#include <stdair/bom/BookingClass.hpp>
10// AirInv
12
13namespace AIRINV {
14
15 // //////////////////////////////////////////////////////////////////////
18
19 // //////////////////////////////////////////////////////////////////////
20 stdair::ClassCode_T BookingClassStruct::getFullSubclassCode() const {
21 std::ostringstream oStr;
22 oStr << _classCode << _subclassCode;
23 return oStr.str();
24 }
25
26 // //////////////////////////////////////////////////////////////////////
27 const std::string BookingClassStruct::describe() const {
28 std::ostringstream ostr;
29 ostr << " " << _classCode << _subclassCode
30 << " (" << _parentClassCode << _parentSubclassCode << ")"
31 << ", " << _cumulatedProtection << ":" << _protection
32 << ", " << _nego
33 << ", " << _noShowPercentage << ":" << _overbookingPercentage
34 << ", " << _nbOfBookings << ":" << _nbOfGroupBookings
36 << ":" << _nbOfWLBookings << ":" << _etb
39 << std::endl;
40 return ostr.str();
41 }
42
43 // //////////////////////////////////////////////////////////////////////
44 void BookingClassStruct::fill (stdair::BookingClass& ioBookingClass) const {
45 // Set the Yield Range Upper Value
46 // ioBookingClass.setYieldRangeValue (_yieldRangeUpperValue);
47
48 // Set the Availability
49 // ioBookingClass.setAvailability (_availability);
50
51 // Set the number of seats
52 // ioBookingClass.setNbOfSeats (_nbOfSeats);
53
54 // Set the Seat Index
55 // ioBookingClass.setSeatIndex (_seatIndex);
56 }
57
58}
stdair::ClassCode_T _parentClassCode
stdair::Availability_T _segmentAvailability
stdair::Availability_T _netRevenueAvailability
stdair::Availability_T _netClassAvailability
stdair::NbOfBookings_T _nbOfBookings
stdair::AuthorizationLevel_T _protection
stdair::AuthorizationLevel_T _cumulatedProtection
void fill(stdair::BookingClass &) const
stdair::SubclassCode_T _parentSubclassCode
stdair::SubclassCode_T _subclassCode
stdair::OverbookingRate_T _overbookingPercentage
stdair::NbOfBookings_T _nbOfWLBookings
const std::string describe() const
stdair::NbOfBookings_T _nbOfGroupBookings
stdair::NbOfBookings_T _etb
stdair::ClassCode_T getFullSubclassCode() const
stdair::NbOfBookings_T _nbOfStaffBookings
stdair::NbOfBookings_T _nbOfPendingGroupBookings
stdair::OverbookingRate_T _noShowPercentage