StdAir Logo  0.45.0
C++ Standard Airline IT Object Library
YieldStoreKey.hpp
Go to the documentation of this file.
00001 #ifndef __STDAIR_BOM_YIELDSTOREKEY_HPP
00002 #define __STDAIR_BOM_YIELDSTOREKEY_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // StdAir
00008 #include <stdair/stdair_inventory_types.hpp>
00009 #include <stdair/bom/KeyAbstract.hpp>
00010 
00011 namespace stdair {
00012 
00014   struct YieldStoreKey : public KeyAbstract {
00015     
00016   private:
00017     // /////////// Default constructor //////////
00018     YieldStoreKey () { };
00019     
00020   public:
00021     // /////////// Construction ///////////
00023     YieldStoreKey (const AirlineCode_T& iAirlineCode);
00024     YieldStoreKey (const YieldStoreKey&);
00026     ~YieldStoreKey ();
00027     
00028     // /////////// Getters //////////
00030     const AirlineCode_T& getAirlineCode() const {
00031       return _airlineCode;
00032     }
00033 
00034     // /////////// Display support methods /////////
00037     void toStream (std::ostream& ioOut) const;
00038     
00041     void fromStream (std::istream& ioIn);
00042       
00048     const std::string toString() const;
00049 
00050   private:
00051     // Attributes
00053     AirlineCode_T _airlineCode;
00054   };
00055 
00056 }
00057 #endif // __STDAIR_BOM_YIELDSTOREKEY_HPP