AirInv Logo  1.00.0
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LegCabinStruct.hpp
Go to the documentation of this file.
1 #ifndef __AIRINV_BOM_LEGCABINSTRUCT_HPP
2 #define __AIRINV_BOM_LEGCABINSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 #include <vector>
10 // StdAir
11 #include <stdair/stdair_inventory_types.hpp>
12 #include <stdair/basic/StructAbstract.hpp>
13 // AirInv
15 
16 // Forward declarations
17 namespace stdair {
18  class LegCabin;
19 }
20 
21 namespace AIRINV {
22 
24  struct LegCabinStruct : public stdair::StructAbstract {
25  // Attributes
26  stdair::CabinCode_T _cabinCode;
27  stdair::CabinCapacity_T _saleableCapacity;
28  stdair::CapacityAdjustment_T _adjustment;
29  stdair::CapacityAdjustment_T _dcsRegrade;
30  stdair::AuthorizationLevel_T _au;
31  stdair::Availability_T _avPool;
32  stdair::UPR_T _upr;
33  stdair::NbOfBookings_T _nbOfBookings;
34  stdair::Availability_T _nav;
35  stdair::Availability_T _gav;
36  stdair::OverbookingRate_T _acp;
37  stdair::NbOfBookings_T _etb;
38  stdair::NbOfBookings_T _staffNbOfBookings;
39  stdair::NbOfBookings_T _wlNbOfBookings;
40  stdair::NbOfBookings_T _groupNbOfBookings;
42 
45  void fill (stdair::LegCabin&) const;
46 
48  const std::string describe() const;
49  };
50 
52  typedef std::vector<LegCabinStruct> LegCabinStructList_T;
53 
54 }
55 #endif // __AIRINV_BOM_LEGCABINSTRUCT_HPP