1.00.26
C++ Standard Airline IT Object Library
Toggle main menu visibility
Loading...
Searching...
No Matches
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
KeyAbstract.hpp
stdair_date_time_types.hpp
stdair_demand_types.hpp
stdair_inventory_types.hpp
stdair
Handle on the StdAir library context.
Definition
BasChronometer.cpp:9
stdair::TripType_T
std::string TripType_T
Definition
stdair_basic_types.hpp:64
stdair::SaturdayStay_T
bool SaturdayStay_T
Definition
stdair_date_time_types.hpp:41
stdair::NonRefundable_T
bool NonRefundable_T
Definition
stdair_demand_types.hpp:27
stdair::DayDuration_T
int DayDuration_T
Definition
stdair_date_time_types.hpp:38
stdair::ChangeFees_T
bool ChangeFees_T
Definition
stdair_demand_types.hpp:24
stdair::FareFeaturesKey::FareFeaturesKey
FareFeaturesKey(const TripType_T &, const DayDuration_T &, const SaturdayStay_T &, const ChangeFees_T &, const NonRefundable_T &, const DayDuration_T &)
Definition
FareFeaturesKey.cpp:26
stdair::FareFeaturesKey::~FareFeaturesKey
~FareFeaturesKey()
Definition
FareFeaturesKey.cpp:48
stdair::FareFeaturesKey::fromStream
void fromStream(std::istream &ioIn)
Definition
FareFeaturesKey.cpp:57
stdair::FareFeaturesKey::getTripType
const TripType_T & getTripType() const
Definition
FareFeaturesKey.hpp:39
stdair::FareFeaturesKey::getMinimumStay
const DayDuration_T & getMinimumStay() const
Definition
FareFeaturesKey.hpp:74
stdair::FareFeaturesKey::toStream
void toStream(std::ostream &ioOut) const
Definition
FareFeaturesKey.cpp:52
stdair::FareFeaturesKey::getChangeFees
const ChangeFees_T & getChangeFees() const
Definition
FareFeaturesKey.hpp:60
stdair::FareFeaturesKey::toString
const std::string toString() const
Definition
FareFeaturesKey.cpp:61
stdair::FareFeaturesKey::getSaturdayStay
const SaturdayStay_T & getSaturdayStay() const
Definition
FareFeaturesKey.hpp:53
stdair::FareFeaturesKey::getAdvancePurchase
const DayDuration_T & getAdvancePurchase() const
Definition
FareFeaturesKey.hpp:46
stdair::FareFeaturesKey::getRefundableOption
const NonRefundable_T & getRefundableOption() const
Definition
FareFeaturesKey.hpp:67
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition
KeyAbstract.hpp:27
Generated for StdAir by
1.17.0