StdAir Logo  1.00.10
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
stdair::AirlineCode_T
std::string AirlineCode_T
Definition: stdair_basic_types.hpp:31
stdair_inventory_types.hpp
stdair::YieldStoreKey::~YieldStoreKey
~YieldStoreKey()
Definition: YieldStoreKey.cpp:19
stdair::YieldStoreKey::getAirlineCode
const AirlineCode_T & getAirlineCode() const
Definition: YieldStoreKey.hpp:30
stdair::YieldStoreKey::fromStream
void fromStream(std::istream &ioIn)
Definition: YieldStoreKey.cpp:28
stdair::YieldStoreKey
Definition: YieldStoreKey.hpp:14
stdair
Handle on the StdAir library context.
Definition: BasChronometer.cpp:9
stdair::YieldStoreKey::toString
const std::string toString() const
Definition: YieldStoreKey.cpp:32
KeyAbstract.hpp
stdair::KeyAbstract
Base class for the keys of Business Object Model (BOM) layer.
Definition: KeyAbstract.hpp:27
stdair::YieldStoreKey::toStream
void toStream(std::ostream &ioOut) const
Definition: YieldStoreKey.cpp:23