StdAir Logo  0.43.0
C++ Standard Airline IT Library
AirlineFeatureKey.hpp
Go to the documentation of this file.
00001 #ifndef __STDAIR_BOM_AIRLINEFEATUREKEY_HPP
00002 #define __STDAIR_BOM_AIRLINEFEATUREKEY_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STL
00008 #include <string>
00009 // StdAir
00010 #include <stdair/stdair_inventory_types.hpp>
00011 #include <stdair/bom/KeyAbstract.hpp>
00012 
00013 namespace stdair {
00015   struct AirlineFeatureKey : public KeyAbstract {
00016     
00017   public:
00018     // /////////// Construction ///////////
00020     AirlineFeatureKey (const AirlineCode_T& iAirlineCode);
00021 
00023     ~AirlineFeatureKey ();
00024     
00025     // /////////// Getters //////////
00027     const AirlineCode_T& getAirlineCode() const { return _airlineCode; }
00028 
00029     // /////////// Display support methods /////////
00032     void toStream (std::ostream& ioOut) const;
00033     
00036     void fromStream (std::istream& ioIn);
00037       
00043     const std::string toString() const;
00044     
00045   private:
00046     // Attributes
00048     AirlineCode_T _airlineCode;
00049   };
00050 
00051 }
00052 #endif // __STDAIR_BOM_AIRLINEFEATUREKEY_HPP