StdAir Logo  1.00.0
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AirlineFeatureKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_AIRLINEFEATUREKEY_HPP
2 #define __STDAIR_BOM_AIRLINEFEATUREKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
12 
13 namespace stdair {
15  struct AirlineFeatureKey : public KeyAbstract {
16 
17  public:
18  // /////////// Construction ///////////
20  AirlineFeatureKey (const AirlineCode_T& iAirlineCode);
21 
24 
25  // /////////// Getters //////////
27  const AirlineCode_T& getAirlineCode() const { return _airlineCode; }
28 
29  // /////////// Display support methods /////////
32  void toStream (std::ostream& ioOut) const;
33 
36  void fromStream (std::istream& ioIn);
37 
43  const std::string toString() const;
44 
45  private:
46  // Attributes
48  AirlineCode_T _airlineCode;
49  };
50 
51 }
52 #endif // __STDAIR_BOM_AIRLINEFEATUREKEY_HPP