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
FareFeaturesKey.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_FAREFEATURESKEY_HPP
2
#define __STDAIR_BOM_FAREFEATURESKEY_HPP
3
4
// //////////////////////////////////////////////////////////////////////
5
// Import section
6
// //////////////////////////////////////////////////////////////////////
7
// StdAir
8
#include <
stdair/bom/KeyAbstract.hpp
>
9
#include <
stdair/stdair_date_time_types.hpp
>
10
#include <
stdair/stdair_demand_types.hpp
>
11
#include <
stdair/stdair_inventory_types.hpp
>
12
13
namespace
stdair {
14
18
struct
FareFeaturesKey
:
public
KeyAbstract
{
19
public
:
20
// /////////// Construction ///////////
22
FareFeaturesKey
(
const
TripType_T
&,
const
DayDuration_T
&,
23
const
SaturdayStay_T
&,
const
ChangeFees_T
&,
24
const
NonRefundable_T
&,
const
DayDuration_T
&);
26
FareFeaturesKey
(
const
FareFeaturesKey
&);
28
~FareFeaturesKey
();
29
private
:
31
FareFeaturesKey
();
32
33
34
public
:
35
// /////////// Getters //////////
39
const
TripType_T
&
getTripType
()
const
{
40
return
_tripType;
41
}
42
46
const
DayDuration_T
&
getAdvancePurchase
()
const
{
47
return
_advancePurchase;
48
}
49
53
const
SaturdayStay_T
&
getSaturdayStay
()
const
{
54
return
_saturdayStay;
55
}
56
60
const
ChangeFees_T
&
getChangeFees
()
const
{
61
return
_changeFees;
62
}
63
67
const
NonRefundable_T
&
getRefundableOption
()
const
{
68
return
_nonRefundable;
69
}
70
74
const
DayDuration_T
&
getMinimumStay
()
const
{
75
return
_minimumStay;
76
}
77
78
79
public
:
80
// /////////// Display support methods /////////
86
void
toStream
(std::ostream& ioOut)
const
;
87
93
void
fromStream
(std::istream& ioIn);
94
100
const
std::string
toString
()
const
;
101
102
103
private
:
104
// ///////////////// Attributes ///////////////////
108
TripType_T
_tripType;
109
113
DayDuration_T
_advancePurchase;
114
118
SaturdayStay_T
_saturdayStay;
119
123
ChangeFees_T
_changeFees;
124
128
NonRefundable_T
_nonRefundable;
129
133
DayDuration_T
_minimumStay;
134
};
135
136
}
137
#endif // __STDAIR_BOM_FAREFEATURESKEY_HPP
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1