StdAir Logo  1.00.3
C++ Standard Airline IT Object Library
YieldRange.hpp
Go to the documentation of this file.
1 #ifndef __STDAIR_BAS_YIELDRANGE_HPP
2 #define __STDAIR_BAS_YIELDRANGE_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STDAIR
10 
11 namespace stdair {
12 
23  class YieldRange : public StructAbstract {
24  public:
26  YieldRange ();
27  YieldRange (const YieldRange&);
28  YieldRange (const Yield_T iUpperYield);
29  YieldRange (const Yield_T iUpperYield, const Yield_T iAverageYield);
30  YieldRange (const Yield_T iUpperYield, const Yield_T iAverageYield,
31  const Yield_T iLowerYield);
32 
34  virtual ~YieldRange();
35 
36 
37  // /////////// Getters ////////////
40  return _upperYield;
41  }
44  return _averageYield;
45  }
48  return _lowerYield;
49  }
50 
51  // //////// Setters /////////
53  void setUpperYield (const Yield_T iUpperYield) {
54  _upperYield = iUpperYield;
55  }
57  void setAverageYield (const Yield_T iAverageYield) {
58  _averageYield = iAverageYield;
59  }
61  void setLowerYield (const Yield_T iLowerYield) {
62  _lowerYield = iLowerYield;
63  }
64 
65 
66  // ///////// Display methods ////////
69  void toStream (std::ostream&) const;
70 
73  void fromStream (std::istream&);
74 
76  const std::string describe() const;
77 
78  private:
79  // ////////// Attributes /////////
81  Yield_T _upperYield;
82 
84  Yield_T _averageYield;
85 
87  Yield_T _lowerYield;
88  };
89 }
90 #endif // __STDAIR_BAS_YIELDRANGE_HPP
void toStream(std::ostream &) const
Definition: YieldRange.cpp:52
Yield_T getUpperYield() const
Definition: YieldRange.hpp:39
Handle on the StdAir library context.
Yield_T getLowerYield() const
Definition: YieldRange.hpp:47
void setLowerYield(const Yield_T iLowerYield)
Definition: YieldRange.hpp:61
void setAverageYield(const Yield_T iAverageYield)
Definition: YieldRange.hpp:57
Base class for the light structures.
virtual ~YieldRange()
Definition: YieldRange.cpp:48
Yield_T getAverageYield() const
Definition: YieldRange.hpp:43
void fromStream(std::istream &)
Definition: YieldRange.cpp:58
const std::string describe() const
Definition: YieldRange.cpp:62
void setUpperYield(const Yield_T iUpperYield)
Definition: YieldRange.hpp:53