8 #include <stdair/basic/BasConst_Inventory.hpp>
9 #include <stdair/basic/BasConst_Period_BOM.hpp>
10 #include <stdair/service/Logger.hpp>
19 : _dateRange (stdair::BOOST_DEFAULT_DATE_PERIOD),
20 _dow (stdair::DEFAULT_DOW_STRING),
21 _prefCabin (stdair::DEFAULT_CABIN_CODE),
22 _itHours (0), _itMinutes (0), _itSeconds (0), _itFFCode (
"") {
36 return boost::posix_time::hours (
_itHours)
43 std::ostringstream ostr;
49 unsigned short idx = 0;
50 for (POSProbabilityMassFunction_T::const_iterator it =
_posProbDist.begin();
52 const stdair::AirportCode_T& lPosCode = it->first;
53 const stdair::Probability_T& lPosProbMass = it->second;
57 ostr << lPosCode <<
":" << lPosProbMass;
62 for (ChannelProbabilityMassFunction_T::const_iterator it =
65 const stdair::ChannelLabel_T lChannelCode = it->first;
66 const stdair::Probability_T& lChannelProbMass = it->second;
70 ostr << lChannelCode <<
":" << lChannelProbMass;
75 for (TripTypeProbabilityMassFunction_T::const_iterator it =
78 const stdair::TripType_T lTripCode = it->first;
79 const stdair::Probability_T& lTripProbMass = it->second;
83 ostr << lTripCode <<
":" << lTripProbMass;
88 for (StayDurationProbabilityMassFunction_T::const_iterator it =
91 const stdair::DayDuration_T& lStayDuration = it->first;
92 const stdair::Probability_T& lStayProbMass = it->second;
96 ostr << lStayDuration <<
":" << lStayProbMass;
101 for (FrequentFlyerProbabilityMassFunction_T::const_iterator it =
104 const stdair::FrequentFlyer_T lFFCode = it->first;
105 const stdair::Probability_T& lFFProbMass = it->second;
109 ostr << lFFCode <<
":" << lFFProbMass;
120 for (PreferredDepartureTimeContinuousDistribution_T::const_iterator it =
123 const stdair::IntDuration_T& lPrefDepTime = it->first;
124 const stdair::Probability_T& lPrefDepTimeProbMass = it->second;
128 ostr << lPrefDepTime <<
":" << lPrefDepTimeProbMass;
135 for (ValueOfTimeContinuousDistribution_T::const_iterator it =
138 const stdair::PriceValue_T& lTimeValue = it->first;
139 const stdair::Probability_T& lTimeValueProbMass = it->second;
143 ostr << lTimeValue <<
":" << lTimeValueProbMass;
148 for (ArrivalPatternCumulativeDistribution_T::const_iterator it =
150 const stdair::FloatDuration_T& lDTD = it->first;
151 const stdair::Probability_T& lDTDProbMass = it->second;
155 ostr << lDTD <<
":" << lDTDProbMass;