7 #include <stdair/basic/BasConst_Inventory.hpp>
8 #include <stdair/bom/BomManager.hpp>
9 #include <stdair/bom/SegmentDate.hpp>
10 #include <stdair/bom/SegmentCabin.hpp>
11 #include <stdair/bom/BookingClass.hpp>
12 #include <stdair/bom/SegmentSnapshotTable.hpp>
13 #include <stdair/service/Logger.hpp>
21 const stdair::DTD_T& iDTD,
22 const stdair::Date_T& iCurrentDate) {
23 stdair::NbOfSegments_T oNbOfSegments = 0;
26 const stdair::SegmentCabinIndexMap_T& lSCMap=iGB.getSegmentCabinIndexMap();
27 for (stdair::SegmentCabinIndexMap_T::const_iterator itSC = lSCMap.begin();
28 itSC != lSCMap.end(); ++itSC) {
29 const stdair::SegmentCabin* lSC_ptr = itSC->first;
30 assert (lSC_ptr != NULL);
43 const stdair::DTD_T& iDTD,
44 const stdair::Date_T& iCurrentDate) {
46 const stdair::SegmentDate& lSegmentDate =
47 stdair::BomManager::getParent<stdair::SegmentDate> (iSegmentCabin);
48 const stdair::Date_T& lBoardingDate = lSegmentDate.getBoardingDate();
52 stdair::DateOffset_T lDateOffset = lBoardingDate - iCurrentDate;
53 stdair::DTD_T lDateOffsetInDays = lDateOffset.days();
54 if (iDTD > lDateOffsetInDays) {