8 #include <stdair/basic/BasConst_General.hpp>
9 #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),
46 return boost::posix_time::hours (
_itHours._value)
47 + boost::posix_time::minutes (
_itMinutes._value)
48 + boost::posix_time::seconds (
_itSeconds._value);
53 std::ostringstream oStr;
54 oStr <<
"YieldRule: " << _yieldId <<
", ";
56 oStr << _origin <<
"-" << _destination <<
" ("
57 << _pos <<
"), " << _channel <<
", [";
58 oStr << _dateRangeStart <<
"/" << _dateRangeEnd <<
"] - ["
59 << boost::posix_time::to_simple_string (_timeRangeStart) <<
"/"
60 << boost::posix_time::to_simple_string (_timeRangeEnd) <<
"], ";
62 oStr << _cabinCode <<
", " << _yield <<
" EUR, ";
65 assert (_airlineCodeList.size() == _classCodeList.size());
68 unsigned short idx = 0;
69 stdair::ClassList_StringList_T::const_iterator itClass =
70 _classCodeList.begin();
71 for (stdair::AirlineCodeList_T::const_iterator itAirline =
72 _airlineCodeList.begin();
73 itAirline != _airlineCodeList.end(); ++itAirline, ++itClass, ++idx) {
77 const stdair::AirlineCode_T lAirlineCode = *itAirline;
78 const stdair::ClassCode_T lClassCode = *itClass;
79 oStr << lAirlineCode <<
" / " << lClassCode;