StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
YieldFeaturesKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_YIELDFEATURESKEY_HPP
2 #define __STDAIR_BOM_YIELDFEATURESKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
12 
13 namespace stdair {
14 
18  struct YieldFeaturesKey : public KeyAbstract {
19  public:
20  // /////////// Construction ///////////
24  YieldFeaturesKey (const TripType_T&, const CabinCode_T&);
33  private:
38 
39  public:
40  // /////////// Getters //////////
44  const TripType_T& getTripType() const {
45  return _tripType;
46  }
47 
51  const CabinCode_T& getCabinCode() const {
52  return _cabinCode;
53  }
54 
55  public:
56  // /////////// Display support methods /////////
61  void toStream (std::ostream& ioOut) const;
62 
67  void fromStream (std::istream& ioIn);
68 
74  const std::string toString() const;
75 
76  private:
77  // //////////////// Attributes //////////////////
81  TripType_T _tripType;
82 
86  CabinCode_T _cabinCode;
87  };
88 
89 }
90 #endif // __STDAIR_BOM_YIELDFEATURESKEY_HPP
std::string CabinCode_T
std::string TripType_T
Handle on the StdAir library context.
const std::string toString() const
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
void fromStream(std::istream &ioIn)
void toStream(std::ostream &ioOut) const
Key of date-period.
const CabinCode_T & getCabinCode() const
const TripType_T & getTripType() const