StdAir Logo  0.45.1
C++ Standard Airline IT Object Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
VirtualClassStruct.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BOM_VIRTUALCLASSSTRUCT_HPP
2 #define __STDAIR_BOM_VIRTUALCLASSSTRUCT_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <iosfwd>
9 #include <string>
10 #include <vector>
11 // StdAir
17 
18 namespace stdair {
19  // Forward declarations.
20  class BookingClass;
21 
24  public:
25  // /////////// Getters ///////////////
27  const Yield_T& getYield() const {
28  return _yield;
29  }
30 
32  const MeanValue_T& getMean() const {
33  return _mean;
34  }
35 
37  const StdDevValue_T& getStdDev() const {
38  return _stdDev;
39  }
40 
43  return _cumulatedBookingLimit;
44  }
45 
48  return _cumulatedProtection;
49  }
50 
53 
54  public:
55  // /////////// Setters ///////////////
57  void setYield (const Yield_T& iYield) {
58  _yield = iYield;
59  }
60 
62  void setMean (const MeanValue_T& iMean) {
63  _mean = iMean;
64  }
65 
67  void setStdDev (const StdDevValue_T& iStdDev) {
68  _stdDev = iStdDev;
69  }
70 
73  _cumulatedBookingLimit = iBL;
74  }
75 
78  _cumulatedProtection = iP;
79  }
80 
81  public:
82  // /////////// Display support method /////////////
85  void toStream (std::ostream& ioOut) const;
86 
89  void fromStream (std::istream& ioIn);
90 
92  const std::string describe() const;
93 
94 
95  public:
96  // //////////// Constructors & Destructor ///////////////
103 
104  private:
107 
108 
109  private:
110  // ///////////////////// Attributes //////////////////////
112  BookingClass* _bookingClass;
113 
115  Yield_T _yield;
116 
118  MeanValue_T _mean;
119 
121  StdDevValue_T _stdDev;
122 
124  BookingLimit_T _cumulatedBookingLimit;
125 
127  ProtectionLevel_T _cumulatedProtection;
128  };
129 
130 }
131 #endif // __STDAIR_BOM_VIRTUALCLASSSTRUCT_HPP