StdAir Logo  1.00.0
C++ Standard Airline IT Object Library
 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
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