StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
YieldStoreKey.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_YIELDSTOREKEY_HPP
2 #define __STDAIR_BOM_YIELDSTOREKEY_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
10 
11 namespace stdair {
12 
14  struct YieldStoreKey : public KeyAbstract {
15 
16  private:
17  // /////////// Default constructor //////////
18  YieldStoreKey () { };
19 
20  public:
21  // /////////// Construction ///////////
23  YieldStoreKey (const AirlineCode_T& iAirlineCode);
26  ~YieldStoreKey ();
27 
28  // /////////// Getters //////////
30  const AirlineCode_T& getAirlineCode() const {
31  return _airlineCode;
32  }
33 
34  // /////////// Display support methods /////////
37  void toStream (std::ostream& ioOut) const;
38 
41  void fromStream (std::istream& ioIn);
42 
48  const std::string toString() const;
49 
50  private:
51  // Attributes
53  AirlineCode_T _airlineCode;
54  };
55 
56 }
57 #endif // __STDAIR_BOM_YIELDSTOREKEY_HPP
Handle on the StdAir library context.
std::string AirlineCode_T
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
const AirlineCode_T & getAirlineCode() const
const std::string toString() const
void fromStream(std::istream &ioIn)
void toStream(std::ostream &ioOut) const