StdAir Logo  1.00.12
C++ Standard Airline IT Object Library
Loading...
Searching...
No Matches
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
15namespace 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&);
62
63 protected:
64 // Attributes
68 };
69
70}
71#endif // __STDAIR_BOM_YIELDSTORE_HPP
72
Handle on the StdAir library context.
std::string AirlineCode_T
Base class for the Business Object Model (BOM) layer.
Definition: BomAbstract.hpp:24
YieldStoreKey Key_T
Definition: YieldStore.hpp:25
const Key_T & getKey() const
Definition: YieldStore.hpp:49
const AirlineCode_T & getAirlineCode() const
Definition: YieldStore.hpp:52
YieldStore(const YieldStore &)
void fromStream(std::istream &ioIn)
Definition: YieldStore.hpp:38
const std::string describeKey() const
Definition: YieldStore.hpp:44
BomAbstract * _parent
Definition: YieldStore.hpp:67
BomAbstract *const getParent() const
Definition: YieldStore.hpp:34
void toStream(std::ostream &ioOut) const
Definition: YieldStore.hpp:31
std::string toString() const
Definition: YieldStore.cpp:21
const std::string toString() const
const AirlineCode_T & getAirlineCode() const
Base class for Factory layer.
Definition: FacBom.hpp:22
Utility class for linking StdAir-based objects.