0.45.1
C++ Standard Airline IT Object Library
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
12
#include <
stdair/stdair_basic_types.hpp
>
13
#include <
stdair/stdair_inventory_types.hpp
>
14
#include <
stdair/stdair_maths_types.hpp
>
15
#include <
stdair/stdair_rm_types.hpp
>
16
#include <
stdair/basic/StructAbstract.hpp
>
17
18
namespace
stdair {
19
// Forward declarations.
20
class
BookingClass;
21
23
struct
VirtualClassStruct
:
public
StructAbstract
{
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
42
const
BookingLimit_T
&
getCumulatedBookingLimit
()
const
{
43
return
_cumulatedBookingLimit;
44
}
45
47
const
ProtectionLevel_T
&
getCumulatedProtection
()
const
{
48
return
_cumulatedProtection;
49
}
50
52
const
GeneratedDemandVector_T
&
getGeneratedDemandVector
()
const
;
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
72
void
setCumulatedBookingLimit
(
const
BookingLimit_T
& iBL) {
73
_cumulatedBookingLimit = iBL;
74
}
75
77
void
setCumulatedProtection
(
const
ProtectionLevel_T
& iP) {
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 ///////////////
98
VirtualClassStruct
(
const
VirtualClassStruct
&);
100
VirtualClassStruct
(
BookingClass
&);
102
~VirtualClassStruct
();
103
104
private
:
106
VirtualClassStruct
();
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
Generated on Mon Aug 27 2012 21:34:05 for StdAir by
1.8.1.2