StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
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
Handle on the StdAir library context.
const AirlineCode_T & getAirlineCode() const
std::string AirlineCode_T
const std::string toString() const
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
void toStream(std::ostream &ioOut) const
AirlineFeatureKey(const AirlineCode_T &iAirlineCode)
void fromStream(std::istream &ioIn)