StdAir Logo  0.45.0
C++ Standard Airline IT Object Library
YieldFeaturesKey.hpp
Go to the documentation of this file.
00001 #ifndef __STDAIR_BOM_YIELDFEATURESKEY_HPP
00002 #define __STDAIR_BOM_YIELDFEATURESKEY_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // StdAir
00008 #include <stdair/bom/KeyAbstract.hpp>
00009 #include <stdair/stdair_date_time_types.hpp>
00010 #include <stdair/stdair_demand_types.hpp>
00011 #include <stdair/stdair_inventory_types.hpp>
00012 
00013 namespace stdair  {
00014   
00018   struct YieldFeaturesKey : public KeyAbstract {
00019   public:
00020     // /////////// Construction ///////////
00024     YieldFeaturesKey (const TripType_T&, const CabinCode_T&);
00028     YieldFeaturesKey (const YieldFeaturesKey&);
00032     ~YieldFeaturesKey ();
00033   private:
00037     YieldFeaturesKey ();
00038 
00039   public:
00040     // /////////// Getters //////////
00044     const TripType_T& getTripType() const {
00045       return _tripType;
00046     }
00047 
00051     const CabinCode_T& getCabinCode() const {
00052       return _cabinCode;
00053     }  
00054   
00055   public:
00056     // /////////// Display support methods /////////
00061     void toStream (std::ostream& ioOut) const;
00062 
00067     void fromStream (std::istream& ioIn);
00068 
00074     const std::string toString() const;
00075 
00076   private:
00077     // //////////////// Attributes //////////////////
00081     TripType_T _tripType;
00082     
00086     CabinCode_T _cabinCode;
00087   };
00088 
00089 }
00090 #endif // __STDAIR_BOM_YIELDFEATURESKEY_HPP