8 #include <stdair/basic/BasConst_Inventory.hpp>
15 DemandStreamKey::DemandStreamKey()
16 : _origin (stdair::DEFAULT_ORIGIN),
17 _destination (stdair::DEFAULT_DESTINATION),
18 _preferredDepartureDate (stdair::DEFAULT_DEPARTURE_DATE),
19 _preferredCabin (stdair::DEFAULT_CABIN_CODE) {
25 DemandStreamKey (
const stdair::AirportCode_T& iOrigin,
26 const stdair::AirportCode_T& iDestination,
27 const stdair::Date_T& iPreferredDepartureDate,
28 const stdair::CabinCode_T& iPreferredCabin)
29 : _origin (iOrigin), _destination (iDestination),
30 _preferredDepartureDate (iPreferredDepartureDate),
31 _preferredCabin (iPreferredCabin) {
36 : _origin (iKey._origin), _destination (iKey._destination),
37 _preferredDepartureDate (iKey._preferredDepartureDate),
38 _preferredCabin (iKey._preferredCabin) {
47 ioOut <<
"DemandStreamKey: " <<
toString();
56 std::ostringstream oStr;
57 oStr << _origin <<
"-" << _destination <<
" " << _preferredDepartureDate
58 <<
" " << _preferredCabin;