1.00.0
C++ Standard Airline IT Object Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
8
#include <
stdair/stdair_inventory_types.hpp
>
9
#include <
stdair/basic/StructAbstract.hpp
>
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 ////////////
39
Yield_T
getUpperYield
()
const
{
40
return
_upperYield;
41
}
43
Yield_T
getAverageYield
()
const
{
44
return
_averageYield;
45
}
47
Yield_T
getLowerYield
()
const
{
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
Generated on Sat Dec 22 2012 16:51:53 for StdAir by
1.8.1.1