StdAir Logo  1.00.3
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
LocationCode_T AirportCode_T
std::string CabinCode_T
boost::posix_time::ptime DateTime_T
std::string TripType_T
Handle on the StdAir library context.
boost::posix_time::time_duration Duration_T
LocationCode_T CityCode_T
Base class for the light structures.
double PriceValue_T
double NbOfSeats_T
const FrequentFlyer_T & getFrequentFlyerType() const
std::string FrequentFlyer_T
boost::gregorian::date Date_T
const ChannelLabel_T & getOptimisationChannel() const
std::string ChannelLabel_T