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
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
ClassYieldMapHolder_T
&
getClassYieldMapHolder
()
const
{
39
return
_classYieldMapHolder;
40
}
41
43
const
BidPriceVectorHolder_T
&
getBidPriceVectorHolder
()
const
{
44
return
_bidPriceVectorHolder;
45
}
46
48
const
ClassBpvMapHolder_T
&
getClassBpvMapHolder
()
const
{
49
return
_classBpvMapHolder;
50
}
51
53
const
FareOptionList_T
&
getFareOptionList
()
const
{
54
return
_fareOptionList;
55
}
56
58
FareOptionList_T
&
getFareOptionListRef
() {
59
return
_fareOptionList;
60
}
61
63
const
FareOptionStruct
&
getChosenFareOption
()
const
{
64
assert (_chosenFareOption != NULL);
65
return
*_chosenFareOption;
66
}
67
68
public
:
69
// /////////// Setters ///////////////
71
void
addSegment
(
const
std::string&);
72
74
void
addClassAvailabilityMap
(
const
ClassAvailabilityMap_T
&);
75
77
void
addClassYieldMap
(
const
ClassYieldMap_T
&);
78
80
void
addBidPriceVector
(
const
BidPriceVector_T
&);
81
83
void
addClassBpvMap
(
const
ClassBpvMap_T
&);
84
86
void
addFareOption
(
const
FareOptionStruct
&);
87
89
void
setChosenFareOption
(
const
FareOptionStruct
& iChosenFO) {
90
_chosenFareOption = &iChosenFO;
91
}
92
93
94
public
:
95
// /////////// Display support method /////////////
101
void
toStream
(std::ostream& ioOut)
const
;
102
107
void
fromStream
(std::istream& ioIn);
108
112
const
std::string
describe
()
const
;
113
117
const
std::string
display
()
const
;
118
119
120
public
:
121
// //////////// Constructors & Destructor ///////////////
125
TravelSolutionStruct
();
126
130
~TravelSolutionStruct
();
131
132
133
private
:
134
// ///////////////////// Attributes //////////////////////
138
SegmentPath_T
_segmentPath;
139
143
ClassAvailabilityMapHolder_T
_classAvailabilityMapHolder;
144
148
ClassYieldMapHolder_T
_classYieldMapHolder;
149
153
BidPriceVectorHolder_T
_bidPriceVectorHolder;
154
158
ClassBpvMapHolder_T
_classBpvMapHolder;
159
163
FareOptionList_T
_fareOptionList;
164
168
const
FareOptionStruct
* _chosenFareOption;
169
};
170
171
}
172
#endif // __STDAIR_BOM_TRAVELSOLUTIONSTRUCT_HPP
Generated on Fri Aug 17 2012 16:00:33 for StdAir by
1.8.1.2