21 _chosenFareOption = NULL;
27 : _segmentPath (iTravelSolution._segmentPath),
28 _classAvailabilityMapHolder (iTravelSolution._classAvailabilityMapHolder),
29 _classObjectIDMapHolder (iTravelSolution._classObjectIDMapHolder),
30 _classYieldMapHolder (iTravelSolution._classYieldMapHolder),
31 _bidPriceVectorHolder (iTravelSolution._bidPriceVectorHolder),
32 _classBpvMapHolder (iTravelSolution._classBpvMapHolder),
33 _fareOptionList (iTravelSolution._fareOptionList),
34 _chosenFareOption (iTravelSolution._chosenFareOption) {
48 std::ostringstream oStr;
51 oStr <<
"Segment path: ";
52 unsigned short idx = 0;
53 for (SegmentPath_T::const_iterator lItSegmentPath = _segmentPath.begin();
54 lItSegmentPath != _segmentPath.end(); ++lItSegmentPath, ++idx) {
58 const std::string& lSegmentPathString = *lItSegmentPath;
61 const std::string& lSegmentKey = lSegmentParsedKey.
toString();
69 std::ostringstream oStr;
72 oStr <<
"Segment path: ";
73 unsigned short idx = 0;
74 for (SegmentPath_T::const_iterator lItSegmentPath = _segmentPath.begin();
75 lItSegmentPath != _segmentPath.end(); ++lItSegmentPath, ++idx) {
79 const std::string& lSegmentPathString = *lItSegmentPath;
82 const std::string& lSegmentKey = lSegmentParsedKey.
toString();
88 if (_chosenFareOption != NULL) {
89 oStr <<
"Chosen fare option: " << _chosenFareOption->
describe()
92 oStr <<
"Fare options: ";
97 for (FareOptionList_T::const_iterator lItFareOption= _fareOptionList.begin();
98 lItFareOption != _fareOptionList.end(); ++lItFareOption, ++idx) {
111 std::ostringstream oStr;
114 unsigned short idx = 0;
115 for (SegmentPath_T::const_iterator itSegPath = _segmentPath.begin();
116 itSegPath != _segmentPath.end(); ++itSegPath, ++idx) {
120 const std::string& lSegmentPathString = *itSegPath;
123 const std::string& lSegmentKey = lSegmentParsedKey.
toString();
124 oStr <<
"[" << idx <<
"] " << lSegmentKey;
130 for (FareOptionList_T::const_iterator itFareOption = _fareOptionList.begin();
131 itFareOption != _fareOptionList.end(); ++itFareOption, ++idx) {
141 for (ClassAvailabilityMapHolder_T::const_iterator itSegMap =
142 _classAvailabilityMapHolder.begin();
143 itSegMap != _classAvailabilityMapHolder.end(); ++itSegMap, ++idx) {
150 oStr <<
"[" << idx <<
"] ";
152 const std::string lClassAvlMapString = lClassAvlMap.
describe();
153 oStr << lClassAvlMapString;
161 _segmentPath.push_back (iKey);
168 _classAvailabilityMapHolder.push_back (lClassAvlStruct);
174 _classObjectIDMapHolder.push_back (iMap);
180 _classYieldMapHolder.push_back (iMap);
186 _bidPriceVectorHolder.push_back (iBpv);
192 _classBpvMapHolder.push_back (iMap);
198 _fareOptionList.push_back (iFareOption);