7 #include <stdair/bom/BomManager.hpp>
8 #include <stdair/bom/BomRoot.hpp>
9 #include <stdair/factory/FacBomManager.hpp>
10 #include <stdair/service/Logger.hpp>
13 #include <airinv/command/DCPEventGenerator.hpp>
18 void DCPEventGenerator::
19 createDCPEvent (stdair::BomRoot& ioBomRoot,
20 DCPEventStruct& iDCPEventStruct) {
29 const stdair::Date_T& lDateRangeStart = iDCPEventStruct._dateRangeStart;
30 const stdair::Date_T& lDateRangeEnd = iDCPEventStruct._dateRangeEnd;
31 const stdair::DatePeriod_T lDatePeriod (lDateRangeStart, lDateRangeEnd);
40 const stdair::DayDuration_T& lAdvancePurchase =
41 iDCPEventStruct._advancePurchase;
42 const stdair::SaturdayStay_T& lSaturdayStay = iDCPEventStruct._saturdayStay;
43 const stdair::ChangeFees_T& lChangeFees = iDCPEventStruct._changeFees;
44 const stdair::NonRefundable_T& lNonRefundable =
45 iDCPEventStruct._nonRefundable;
46 const stdair::DayDuration_T& lMinimumStay = iDCPEventStruct._minimumStay;
47 const stdair::Fare_T& lDCP = iDCPEventStruct._DCP;
50 stdair::ClassList_StringList_T::const_iterator lItCurrentClassCodeList =
51 iDCPEventStruct._classCodeList.begin();
53 const unsigned int lAirlineListSize = iDCPEventStruct.getAirlineListSize();
54 const unsigned int lClassCodeListSize =
55 iDCPEventStruct.getClassCodeListSize();
56 assert (lAirlineListSize == lClassCodeListSize);
58 iDCPEventStruct.beginClassCode();
59 for (iDCPEventStruct.beginAirline();
60 iDCPEventStruct.hasNotReachedEndAirline();
61 iDCPEventStruct.iterateAirline()) {