StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
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
12 
13 namespace stdair {
14 
18  struct FareFeaturesKey : public KeyAbstract {
19  public:
20  // /////////// Construction ///////////
23  const SaturdayStay_T&, const ChangeFees_T&,
24  const NonRefundable_T&, const DayDuration_T&);
29  private:
32 
33 
34  public:
35  // /////////// Getters //////////
39  const TripType_T& getTripType() const {
40  return _tripType;
41  }
42 
47  return _advancePurchase;
48  }
49 
54  return _saturdayStay;
55  }
56 
60  const ChangeFees_T& getChangeFees() const {
61  return _changeFees;
62  }
63 
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
const ChangeFees_T & getChangeFees() const
const std::string toString() const
const DayDuration_T & getAdvancePurchase() const
void fromStream(std::istream &ioIn)
std::string TripType_T
Handle on the StdAir library context.
void toStream(std::ostream &ioOut) const
Key of date-period.
const NonRefundable_T & getRefundableOption() const
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
const SaturdayStay_T & getSaturdayStay() const
const TripType_T & getTripType() const
const DayDuration_T & getMinimumStay() const