00001 // ////////////////////////////////////////////////////////////////////// 00002 // Import section 00003 // ////////////////////////////////////////////////////////////////////// 00004 // STL 00005 #include <cassert> 00006 #include <sstream> 00007 // StdAir 00008 #include <stdair/bom/SegmentCabin.hpp> 00009 // AirInv 00010 #include <airinv/bom/SegmentCabinStruct.hpp> 00011 00012 namespace AIRINV { 00013 00014 // ////////////////////////////////////////////////////////////////////// 00015 const std::string SegmentCabinStruct::describe() const { 00016 std::ostringstream ostr; 00017 00018 ostr << " " << _cabinCode << ", " << _nbOfBookings << std::endl; 00019 00020 for (FareFamilyStructList_T::const_iterator itFF = _fareFamilies.begin(); 00021 itFF != _fareFamilies.end(); ++itFF) { 00022 const FareFamilyStruct& lFF = *itFF; 00023 ostr << lFF.describe(); 00024 } 00025 if (_fareFamilies.empty() == false) { 00026 ostr << std::endl; 00027 } 00028 00029 return ostr.str(); 00030 } 00031 00032 // ////////////////////////////////////////////////////////////////////// 00033 void SegmentCabinStruct::fill (stdair::SegmentCabin& ioSegmentCabin) const { 00034 // Set the total number of bookings 00035 // ioSegmentCabin.setNbOfBookings (_nbOfBookings); 00036 } 00037 00038 }