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
TravelSolutionStruct.hpp
Go to the documentation of this file.
1
#ifndef __STDAIR_BOM_TRAVELSOLUTIONSTRUCT_HPP
2
#define __STDAIR_BOM_TRAVELSOLUTIONSTRUCT_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/basic/StructAbstract.hpp
>
14
#include <
stdair/bom/BookingClassTypes.hpp
>
15
#include <
stdair/bom/FareOptionStruct.hpp
>
16
#include <
stdair/bom/FareOptionTypes.hpp
>
17
#include <
stdair/bom/TravelSolutionTypes.hpp
>
18
19
namespace
stdair {
20
24
struct
TravelSolutionStruct
:
public
StructAbstract
{
25
public
:
26
// /////////// Getters ///////////////
28
const
SegmentPath_T
&
getSegmentPath
()
const
{
29
return
_segmentPath;
30
}
31
33
const
ClassAvailabilityMapHolder_T
&
getClassAvailabilityMapHolder
()
const
{
34
return
_classAvailabilityMapHolder;
35
}
36
38
const
ClassObjectIDMapHolder_T
&
getClassObjectIDMapHolder
()
const
{
39
return
_classObjectIDMapHolder;
40
}
41
43
const
ClassYieldMapHolder_T
&
getClassYieldMapHolder
()
const
{
44
return
_classYieldMapHolder;
45
}
46
48
const
BidPriceVectorHolder_T
&
getBidPriceVectorHolder
()
const
{
49
return
_bidPriceVectorHolder;
50
}
51
53
const
ClassBpvMapHolder_T
&
getClassBpvMapHolder
()
const
{
54
return
_classBpvMapHolder;
55
}
56
58
const
FareOptionList_T
&
getFareOptionList
()
const
{
59
return
_fareOptionList;
60
}
61
63
FareOptionList_T
&
getFareOptionListRef
() {
64
return
_fareOptionList;
65
}
66
68
const
FareOptionStruct
&
getChosenFareOption
()
const
{
69
assert (_chosenFareOption != NULL);
70
return
*_chosenFareOption;
71
}
72
73
public
:
74
// /////////// Setters ///////////////
76
void
addSegment
(
const
std::string&);
77
79
void
addClassAvailabilityMap
(
const
ClassAvailabilityMap_T
&);
80
82
void
addClassObjectIDMap
(
const
ClassObjectIDMap_T
&);
83
85
void
addClassYieldMap
(
const
ClassYieldMap_T
&);
86
88
void
addBidPriceVector
(
const
BidPriceVector_T
&);
89
91
void
addClassBpvMap
(
const
ClassBpvMap_T
&);
92
94
void
addFareOption
(
const
FareOptionStruct
&);
95
97
void
setChosenFareOption
(
const
FareOptionStruct
& iChosenFO) {
98
_chosenFareOption = &iChosenFO;
99
}
100
101
102
public
:
103
// /////////// Display support method /////////////
109
void
toStream
(std::ostream& ioOut)
const
;
110
115
void
fromStream
(std::istream& ioIn);
116
120
const
std::string
describe
()
const
;
121
125
const
std::string
display
()
const
;
126
130
const
std::string
describeSegmentPath
()
const
;
131
132
133
public
:
134
// //////////// Constructors & Destructor ///////////////
138
TravelSolutionStruct
();
139
143
~TravelSolutionStruct
();
144
145
146
private
:
147
// ///////////////////// Attributes //////////////////////
151
SegmentPath_T
_segmentPath;
152
156
ClassAvailabilityMapHolder_T
_classAvailabilityMapHolder;
157
161
ClassObjectIDMapHolder_T
_classObjectIDMapHolder;
162
166
ClassYieldMapHolder_T
_classYieldMapHolder;
167
171
BidPriceVectorHolder_T
_bidPriceVectorHolder;
172
176
ClassBpvMapHolder_T
_classBpvMapHolder;
177
181
FareOptionList_T
_fareOptionList;
182
186
const
FareOptionStruct
* _chosenFareOption;
187
};
188
189
}
190
#endif // __STDAIR_BOM_TRAVELSOLUTIONSTRUCT_HPP
Generated on Sat Dec 22 2012 16:51:54 for StdAir by
1.8.1.1