9 #include <stdair/basic/BasConst_General.hpp>
10 #include <stdair/service/Logger.hpp>
21 _dateRangeStart(stdair::DEFAULT_DATE),
22 _dateRangeEnd(stdair::DEFAULT_DATE),
23 _timeRangeStart(stdair::DEFAULT_EPSILON_DURATION),
24 _timeRangeEnd(stdair::DEFAULT_EPSILON_DURATION),
47 return boost::posix_time::hours (
_itHours._value)
48 + boost::posix_time::minutes (
_itMinutes._value)
49 + boost::posix_time::seconds (
_itSeconds._value);
56 std::ostringstream oStr;
57 oStr <<
"FareRule: " << _fareId <<
", ";
59 oStr << _origin <<
"-" << _destination <<
" ("
60 << _pos <<
"), " << _channel <<
", [";
61 oStr << _dateRangeStart <<
"/" << _dateRangeEnd <<
"] - ["
62 << boost::posix_time::to_simple_string (_timeRangeStart) <<
"/"
63 << boost::posix_time::to_simple_string (_timeRangeEnd) <<
"], ";
65 oStr << _cabinCode <<
", " << _fare <<
" EUR, ";
66 oStr << _tripType <<
", " << _saturdayStay <<
", "
67 << _changeFees <<
", " << _nonRefundable <<
", "
68 << _advancePurchase <<
", " << _minimumStay <<
", ";
71 assert (_airlineCodeList.size() == _classCodeList.size());
74 unsigned short idx = 0;
75 stdair::ClassList_StringList_T::const_iterator itClass =
76 _classCodeList.begin();
77 for (stdair::AirlineCodeList_T::const_iterator itAirline =
78 _airlineCodeList.begin();
79 itAirline != _airlineCodeList.end(); ++itAirline, ++itClass, ++idx) {
83 const stdair::AirlineCode_T lAirlineCode = *itAirline;
84 const stdair::ClassCode_T lClassCode = *itClass;
85 oStr << lAirlineCode <<
" / " << lClassCode;