AirInv Logo  1.00.1
C++ Simulated Airline Inventory Management System library
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 
13 namespace AIRINV {
14 
15  // //////////////////////////////////////////////////////////////////////
17  }
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
37  << ", " << _netClassAvailability << ":" << _segmentAvailability
38  << ":" << _netRevenueAvailability
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 }
void fill(stdair::BookingClass &) const
stdair::NbOfBookings_T _nbOfStaffBookings
stdair::NbOfBookings_T _nbOfBookings
stdair::AuthorizationLevel_T _protection
const std::string describe() const
stdair::SubclassCode_T _subclassCode
stdair::OverbookingRate_T _overbookingPercentage
stdair::NbOfBookings_T _nbOfPendingGroupBookings
stdair::OverbookingRate_T _noShowPercentage
stdair::NbOfBookings_T _nbOfGroupBookings
stdair::ClassCode_T _classCode
stdair::NbOfBookings_T _etb
stdair::ClassCode_T _parentClassCode
stdair::NbOfBookings_T _nbOfWLBookings
stdair::ClassCode_T getFullSubclassCode() const
stdair::Availability_T _segmentAvailability
stdair::SubclassCode_T _parentSubclassCode
stdair::Availability_T _netRevenueAvailability
stdair::AuthorizationLevel_T _cumulatedProtection
stdair::Availability_T _netClassAvailability