StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
YieldStore.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_YIELDSTORE_HPP
2 #define __STDAIR_BOM_YIELDSTORE_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
14 
15 namespace stdair {
16 
18  class YieldStore : public BomAbstract {
19  template <typename BOM> friend class FacBom;
20  friend class FacBomManager;
21 
22  public :
23  // Type definitions
26 
27  public:
28  // /////////// Display support methods /////////
31  void toStream (std::ostream& ioOut) const { ioOut << toString(); }
32 
34  BomAbstract* const getParent() const { return _parent; }
35 
38  void fromStream (std::istream& ioIn) { }
39 
41  std::string toString() const;
42 
44  const std::string describeKey() const { return _key.toString(); }
45 
46  public:
47  // ////////// Getters ////////////
49  const Key_T& getKey() const { return _key; }
50 
52  const AirlineCode_T& getAirlineCode () const {
53  return _key.getAirlineCode();
54  }
55 
56  protected:
58  YieldStore (const Key_T&);
59  YieldStore (const YieldStore&);
61  ~YieldStore();
62 
63  protected:
64  // Attributes
66  Key_T _key;
68  };
69 
70 }
71 #endif // __STDAIR_BOM_YIELDSTORE_HPP
72 
std::string toString() const
Definition: YieldStore.cpp:21
Utility class for linking StdAir-based objects.
Handle on the StdAir library context.
YieldStore(const Key_T &)
Definition: YieldStore.cpp:13
Base class for the Business Object Model (BOM) layer.
Definition: BomAbstract.hpp:24
std::string AirlineCode_T
const Key_T & getKey() const
Definition: YieldStore.hpp:49
void toStream(std::ostream &ioOut) const
Definition: YieldStore.hpp:31
const AirlineCode_T & getAirlineCode() const
Definition: YieldStore.hpp:52
Base class for Factory layer.
Definition: FacBom.hpp:22
BomAbstract * _parent
Definition: YieldStore.hpp:67
const std::string describeKey() const
Definition: YieldStore.hpp:44
const AirlineCode_T & getAirlineCode() const
BomAbstract *const getParent() const
Definition: YieldStore.hpp:34
void fromStream(std::istream &ioIn)
Definition: YieldStore.hpp:38
const std::string toString() const
YieldStoreKey Key_T
Definition: YieldStore.hpp:25