Go to the documentation of this file.00001
00002
00003
00004
00005 #include <cassert>
00006 #include <sstream>
00007
00008 #include <stdair/bom/LegCabin.hpp>
00009
00010 #include <airinv/bom/LegCabinStruct.hpp>
00011
00012 namespace AIRINV {
00013
00014
00015 const std::string LegCabinStruct::describe() const {
00016 std::ostringstream ostr;
00017 ostr << " " << _cabinCode << ", " << _saleableCapacity
00018 << ", " << _adjustment << ", " << _dcsRegrade
00019 << ", " << _au << ", " << _avPool
00020 << ", " << _upr << ", " << _nbOfBookings << ", " << _nav
00021 << ", " << _gav << ", " << _acp << ", " << _etb
00022 << ", " << _staffNbOfBookings << ", " << _wlNbOfBookings
00023 << ", " << _groupNbOfBookings
00024 << std::endl;
00025
00026 for (BucketStructList_T::const_iterator itBucket = _bucketList.begin();
00027 itBucket != _bucketList.end(); ++itBucket) {
00028 const BucketStruct& lBucket = *itBucket;
00029 ostr << lBucket.describe();
00030 }
00031 if (_bucketList.empty() == false) {
00032 ostr << std::endl;
00033 }
00034 return ostr.str();
00035 }
00036
00037
00038 void LegCabinStruct::fill (stdair::LegCabin& ioLegCabin) const {
00039
00040 ioLegCabin.setCapacities (_saleableCapacity);
00041 }
00042
00043 }