AirInv Logo  1.00.7
C++ Simulated Airline Inventory Management System Library
Loading...
Searching...
No Matches
LegCabinStruct.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/bom/LegCabin.hpp>
9// AirInv
11
12namespace AIRINV {
13
14 // //////////////////////////////////////////////////////////////////////
15 const std::string LegCabinStruct::describe() const {
16 std::ostringstream ostr;
17 ostr << " " << _cabinCode << ", " << _saleableCapacity
18 << ", " << _adjustment << ", " << _dcsRegrade
19 << ", " << _au << ", " << _avPool
20 << ", " << _upr << ", " << _nbOfBookings << ", " << _nav
21 << ", " << _gav << ", " << _acp << ", " << _etb
22 << ", " << _staffNbOfBookings << ", " << _wlNbOfBookings
23 << ", " << _groupNbOfBookings
24 << std::endl;
25
26 for (BucketStructList_T::const_iterator itBucket = _bucketList.begin();
27 itBucket != _bucketList.end(); ++itBucket) {
28 const BucketStruct& lBucket = *itBucket;
29 ostr << lBucket.describe();
30 }
31 if (_bucketList.empty() == false) {
32 ostr << std::endl;
33 }
34 return ostr.str();
35 }
36
37 // //////////////////////////////////////////////////////////////////////
38 void LegCabinStruct::fill (stdair::LegCabin& ioLegCabin) const {
39 // Set the Capacity
40 ioLegCabin.setCapacities (_saleableCapacity);
41 }
42
43}
Utility Structure for the parsing of Bucket structures.
const std::string describe() const
const std::string describe() const
stdair::NbOfBookings_T _wlNbOfBookings
stdair::CapacityAdjustment_T _adjustment
BucketStructList_T _bucketList
void fill(stdair::LegCabin &) const
stdair::CabinCapacity_T _saleableCapacity
stdair::OverbookingRate_T _acp
stdair::CabinCode_T _cabinCode
stdair::CapacityAdjustment_T _dcsRegrade
stdair::Availability_T _gav
stdair::NbOfBookings_T _nbOfBookings
stdair::Availability_T _avPool
stdair::NbOfBookings_T _staffNbOfBookings
stdair::NbOfBookings_T _groupNbOfBookings
stdair::Availability_T _nav
stdair::NbOfBookings_T _etb
stdair::AuthorizationLevel_T _au