Go to the documentation of this file.00001
00002
00003
00004
00005 #include <cassert>
00006
00007 #include <stdair/bom/BomManager.hpp>
00008 #include <stdair/bom/BomRoot.hpp>
00009 #include <stdair/factory/FacBomManager.hpp>
00010 #include <stdair/service/Logger.hpp>
00011
00012 #include <airinv/bom/DCPEventStruct.hpp>
00013 #include <airinv/command/DCPEventGenerator.hpp>
00014
00015 namespace AIRINV {
00016
00017
00018 void DCPEventGenerator::
00019 createDCPEvent (stdair::BomRoot& ioBomRoot,
00020 DCPEventStruct& iDCPEventStruct) {
00021
00022
00023
00024
00025
00026
00027
00028
00029 const stdair::Date_T& lDateRangeStart = iDCPEventStruct._dateRangeStart;
00030 const stdair::Date_T& lDateRangeEnd = iDCPEventStruct._dateRangeEnd;
00031 const stdair::DatePeriod_T lDatePeriod (lDateRangeStart, lDateRangeEnd);
00032
00033
00034
00035
00036
00037
00038
00039
00040 const stdair::DayDuration_T& lAdvancePurchase =
00041 iDCPEventStruct._advancePurchase;
00042 const stdair::SaturdayStay_T& lSaturdayStay = iDCPEventStruct._saturdayStay;
00043 const stdair::ChangeFees_T& lChangeFees = iDCPEventStruct._changeFees;
00044 const stdair::NonRefundable_T& lNonRefundable =
00045 iDCPEventStruct._nonRefundable;
00046 const stdair::DayDuration_T& lMinimumStay = iDCPEventStruct._minimumStay;
00047 const stdair::Fare_T& lDCP = iDCPEventStruct._DCP;
00048
00049
00050 stdair::ClassList_StringList_T::const_iterator lItCurrentClassCodeList =
00051 iDCPEventStruct._classCodeList.begin();
00052
00053 const unsigned int lAirlineListSize = iDCPEventStruct.getAirlineListSize();
00054 const unsigned int lClassCodeListSize =
00055 iDCPEventStruct.getClassCodeListSize();
00056 assert (lAirlineListSize == lClassCodeListSize);
00057
00058 iDCPEventStruct.beginClassCode();
00059 for (iDCPEventStruct.beginAirline();
00060 iDCPEventStruct.hasNotReachedEndAirline();
00061 iDCPEventStruct.iterateAirline()) {
00062
00063
00064
00065
00066
00067
00068 }
00069 }
00070
00071 }
00072