StdAir Logo  1.00.8
C++ Standard Airline IT Object Library
OptimisationNotificationStruct.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_OPTIMISATIONNOTIFICATIONSTRUCT_HPP
2 #define __STDAIR_BOM_OPTIMISATIONNOTIFICATIONSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <string>
10 // StdAir
15 
16 namespace stdair {
17 
20  public:
21  // /////////////// Getters /////////////////
23  const AirportCode_T& getOrigin() const {
24  return _origin;
25  }
26 
28  const AirportCode_T& getDestination() const {
29  return _destination;
30  }
31 
33  const CityCode_T& getPOS() const {
34  return _pos;
35  }
36 
39  return _preferredDepartureDate;
40  }
41 
44  return _notificationDateTime;
45  }
46 
48  const CabinCode_T& getPreferredCabin() const {
49  return _preferredCabin;
50  }
51 
53  const NbOfSeats_T& getPartySize() const {
54  return _partySize;
55  }
56 
59  return _channel;
60  }
61 
63  const TripType_T& getTripType() const {
64  return _tripType;
65  }
66 
68  const DayDuration_T& getStayDuration() const {
69  return _stayDuration;
70  }
71 
74  return _frequentFlyerType;
75  }
76 
79  return _preferredDepartureTime;
80  }
81 
83  const WTP_T& getWTP() const {
84  return _wtp;
85  }
86 
88  const PriceValue_T& getValueOfTime () const {
89  return _valueOfTime;
90  }
91 
92  // /////////// Display support method /////////////
95  void toStream (std::ostream& ioOut) const;
96 
99  void fromStream (std::istream& ioIn);
100 
102  const std::string describe() const;
103 
104 
105  // /////////////// Constructors and Destructors /////////////////
106  public:
109  const AirportCode_T& iDestination,
110  const CityCode_T& iPOS,
111  const Date_T& iDepartureDate,
112  const DateTime_T& iNotificationDateTime,
113  const CabinCode_T& iPreferredCabin,
114  const NbOfSeats_T& iPartySize,
115  const ChannelLabel_T& iChannel,
116  const TripType_T& iTripType,
117  const DayDuration_T& iStayDuration,
118  const FrequentFlyer_T& iFrequentFlyerType,
119  const Duration_T& iPreferredDepartureTime,
120  const WTP_T& iWTP,
121  const PriceValue_T& iValueOfTime);
122 
125 
126  private:
130 
131  public:
134 
135 
136  private:
137  // /////////////// Attributes /////////////////
139  const AirportCode_T _origin;
140 
142  const AirportCode_T _destination;
143 
145  const CityCode_T _pos;
146 
148  const Date_T _preferredDepartureDate;
149 
151  const DateTime_T _notificationDateTime;
152 
154  const CabinCode_T _preferredCabin;
155 
157  const NbOfSeats_T _partySize;
158 
160  const ChannelLabel_T _channel;
161 
164  const TripType_T _tripType;
165 
167  const DayDuration_T _stayDuration;
168 
170  const FrequentFlyer_T _frequentFlyerType;
171 
173  const Duration_T _preferredDepartureTime;
174 
176  const WTP_T _wtp;
177 
179  const PriceValue_T _valueOfTime;
180  };
181 
182 }
183 #endif // __STDAIR_BOM_OPTIMISATIONNOTIFICATIONSTRUCT_HPP
stdair::FrequentFlyer_T
std::string FrequentFlyer_T
Definition: stdair_demand_types.hpp:95
stdair::TripType_T
std::string TripType_T
Definition: stdair_basic_types.hpp:64
stdair::OptimisationNotificationStruct
Definition: OptimisationNotificationStruct.hpp:19
stdair::DayDuration_T
int DayDuration_T
Definition: stdair_date_time_types.hpp:38
stdair::OptimisationNotificationStruct::getOrigin
const AirportCode_T & getOrigin() const
Definition: OptimisationNotificationStruct.hpp:23
stdair_inventory_types.hpp
stdair::OptimisationNotificationStruct::getValueOfTime
const PriceValue_T & getValueOfTime() const
Definition: OptimisationNotificationStruct.hpp:88
stdair_demand_types.hpp
stdair::OptimisationNotificationStruct::getTripType
const TripType_T & getTripType() const
Definition: OptimisationNotificationStruct.hpp:63
stdair::OptimisationNotificationStruct::describe
const std::string describe() const
Definition: OptimisationNotificationStruct.cpp:77
stdair::OptimisationNotificationStruct::getFrequentFlyerType
const FrequentFlyer_T & getFrequentFlyerType() const
Definition: OptimisationNotificationStruct.hpp:73
stdair::AirportCode_T
LocationCode_T AirportCode_T
Definition: stdair_basic_types.hpp:22
stdair::OptimisationNotificationStruct::getWTP
const WTP_T & getWTP() const
Definition: OptimisationNotificationStruct.hpp:83
stdair::OptimisationNotificationStruct::getPreferedDepartureDate
const Date_T & getPreferedDepartureDate() const
Definition: OptimisationNotificationStruct.hpp:38
stdair::WTP_T
double WTP_T
Definition: stdair_demand_types.hpp:71
stdair::OptimisationNotificationStruct::getOptimisationChannel
const ChannelLabel_T & getOptimisationChannel() const
Definition: OptimisationNotificationStruct.hpp:58
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::OptimisationNotificationStruct::getNotificationDateTime
const DateTime_T & getNotificationDateTime() const
Definition: OptimisationNotificationStruct.hpp:43
stdair::OptimisationNotificationStruct::~OptimisationNotificationStruct
~OptimisationNotificationStruct()
Definition: OptimisationNotificationStruct.cpp:64
stdair::OptimisationNotificationStruct::fromStream
void fromStream(std::istream &ioIn)
Definition: OptimisationNotificationStruct.cpp:73
stdair::DateTime_T
boost::posix_time::ptime DateTime_T
Definition: stdair_date_time_types.hpp:26
stdair::OptimisationNotificationStruct::getDestination
const AirportCode_T & getDestination() const
Definition: OptimisationNotificationStruct.hpp:28
stdair::OptimisationNotificationStruct::getPreferredDepartureTime
const Duration_T & getPreferredDepartureTime() const
Definition: OptimisationNotificationStruct.hpp:78
OptimisationNotificationTypes.hpp
stdair::CityCode_T
LocationCode_T CityCode_T
Definition: stdair_basic_types.hpp:25
stdair::OptimisationNotificationStruct::getPartySize
const NbOfSeats_T & getPartySize() const
Definition: OptimisationNotificationStruct.hpp:53
stdair::PriceValue_T
double PriceValue_T
Definition: stdair_basic_types.hpp:76
StructAbstract.hpp
stdair::OptimisationNotificationStruct::getPreferredCabin
const CabinCode_T & getPreferredCabin() const
Definition: OptimisationNotificationStruct.hpp:48
stdair::CabinCode_T
std::string CabinCode_T
Definition: stdair_basic_types.hpp:41
stdair::StructAbstract
Base class for the light structures.
Definition: StructAbstract.hpp:16
stdair::ChannelLabel_T
std::string ChannelLabel_T
Definition: stdair_demand_types.hpp:92
stdair::Duration_T
boost::posix_time::time_duration Duration_T
Definition: stdair_date_time_types.hpp:17
stdair::NbOfSeats_T
double NbOfSeats_T
Definition: stdair_basic_types.hpp:92
stdair::OptimisationNotificationStruct::getStayDuration
const DayDuration_T & getStayDuration() const
Definition: OptimisationNotificationStruct.hpp:68
stdair::OptimisationNotificationStruct::toStream
void toStream(std::ostream &ioOut) const
Definition: OptimisationNotificationStruct.cpp:68
stdair::Date_T
boost::gregorian::date Date_T
Definition: stdair_date_time_types.hpp:20
stdair::OptimisationNotificationStruct::getPOS
const CityCode_T & getPOS() const
Definition: OptimisationNotificationStruct.hpp:33