1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
11
#include <
stdair/stdair_inventory_types.hpp
>
12
#include <
stdair/stdair_demand_types.hpp
>
13
#include <
stdair/basic/StructAbstract.hpp
>
14
#include <
stdair/bom/OptimisationNotificationTypes.hpp
>
15
16
namespace
stdair {
17
19
struct
OptimisationNotificationStruct
:
public
StructAbstract
{
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
38
const
Date_T
&
getPreferedDepartureDate
()
const
{
39
return
_preferredDepartureDate;
40
}
41
43
const
DateTime_T
&
getNotificationDateTime
()
const
{
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
58
const
ChannelLabel_T
&
getOptimisationChannel
()
const
{
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
73
const
FrequentFlyer_T
&
getFrequentFlyerType
()
const
{
74
return
_frequentFlyerType;
75
}
76
78
const
Duration_T
&
getPreferredDepartureTime
()
const
{
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
:
108
OptimisationNotificationStruct
(
const
AirportCode_T
& iOrigin,
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
124
OptimisationNotificationStruct
(
const
OptimisationNotificationStruct
&);
125
126
private
:
129
OptimisationNotificationStruct
();
130
131
public
:
133
~OptimisationNotificationStruct
();
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
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1