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);
void fromStream(std::istream &ioIn)
std::map< const ClassCode_T, Availability_T > ClassAvailabilityMap_T
const std::string toString() const
std::map< const ClassCode_T, const BidPriceVector_T * > ClassBpvMap_T
const std::string display() const
std::map< const ClassCode_T, BookingClassID_T > ClassObjectIDMap_T
void addClassBpvMap(const ClassBpvMap_T &)
std::map< const ClassCode_T, YieldValue_T > ClassYieldMap_T
Structure holding the elements of a travel solution.
const std::string describe() const
const std::string describeSegmentPath() const
const std::string display() const
Structure holding the elements of a fare option.
Structure holding the elements of a travel solution.
void addClassYieldMap(const ClassYieldMap_T &)
std::vector< BidPrice_T > BidPriceVector_T
void addFareOption(const FareOptionStruct &)
static ParsedKey extractKeys(const std::string &iFullKeyStr)
void addBidPriceVector(const BidPriceVector_T &)
void toStream(std::ostream &ioOut) const
const std::string describe() const
void addClassAvailabilityMap(const ClassAvailabilityMap_T &)
void addSegment(const std::string &)
void addClassObjectIDMap(const ClassObjectIDMap_T &)
const std::string describe() const