33 std::ostringstream oStr;
36 oStr <<
"Segment path: ";
37 unsigned short idx = 0;
38 for (SegmentPath_T::const_iterator lItSegmentPath = _segmentPath.begin();
39 lItSegmentPath != _segmentPath.end(); ++lItSegmentPath, ++idx) {
43 const std::string& lSegmentPathString = *lItSegmentPath;
46 const std::string& lSegmentKey = lSegmentParsedKey.
toString();
54 std::ostringstream oStr;
57 oStr <<
"Segment path: ";
58 unsigned short idx = 0;
59 for (SegmentPath_T::const_iterator lItSegmentPath = _segmentPath.begin();
60 lItSegmentPath != _segmentPath.end(); ++lItSegmentPath, ++idx) {
64 const std::string& lSegmentPathString = *lItSegmentPath;
67 const std::string& lSegmentKey = lSegmentParsedKey.
toString();
73 if (_chosenFareOption != NULL) {
74 oStr <<
"Chosen fare option: " << _chosenFareOption->
describe()
77 oStr <<
"Fare options: ";
82 for (FareOptionList_T::const_iterator lItFareOption= _fareOptionList.begin();
83 lItFareOption != _fareOptionList.end(); ++lItFareOption, ++idx) {
96 std::ostringstream oStr;
99 unsigned short idx = 0;
100 for (SegmentPath_T::const_iterator itSegPath = _segmentPath.begin();
101 itSegPath != _segmentPath.end(); ++itSegPath, ++idx) {
105 const std::string& lSegmentPathString = *itSegPath;
108 const std::string& lSegmentKey = lSegmentParsedKey.
toString();
109 oStr <<
"[" << idx <<
"] " << lSegmentKey;
115 for (FareOptionList_T::const_iterator itFareOption = _fareOptionList.begin();
116 itFareOption != _fareOptionList.end(); ++itFareOption, ++idx) {
127 for (ClassAvailabilityMapHolder_T::const_iterator itSegMap =
128 _classAvailabilityMapHolder.begin();
129 itSegMap != _classAvailabilityMapHolder.end(); ++itSegMap, ++idx) {
135 oStr <<
"[" << idx <<
"] ";
138 unsigned short jdx = 0;
139 for (ClassAvailabilityMap_T::const_iterator itClass = lClassAvlMap.begin();
140 itClass != lClassAvlMap.end(); ++itClass, ++jdx) {
146 oStr << lClassCode <<
":" << lAvl;
155 _segmentPath.push_back (iKey);
161 _classAvailabilityMapHolder.push_back (iMap);
167 _classObjectIDMapHolder.push_back (iMap);
173 _classYieldMapHolder.push_back (iMap);
179 _bidPriceVectorHolder.push_back (iBpv);
185 _classBpvMapHolder.push_back (iMap);
191 _fareOptionList.push_back (iFareOption);
void addClassYieldMap(const ClassYieldMap_T &)
const std::string display() const
Structure holding the elements of a fare option.
const std::string describe() const
void fromStream(std::istream &ioIn)
std::vector< BidPrice_T > BidPriceVector_T
void toStream(std::ostream &ioOut) const
Handle on the StdAir library context.
void addBidPriceVector(const BidPriceVector_T &)
void addClassAvailabilityMap(const ClassAvailabilityMap_T &)
void addFareOption(const FareOptionStruct &)
const std::string describe() const
std::map< const ClassCode_T, Availability_T > ClassAvailabilityMap_T
const std::string toString() const
static ParsedKey extractKeys(const std::string &iFullKeyStr)
const std::string display() const
std::map< const ClassCode_T, BookingClassID_T > ClassObjectIDMap_T
void addSegment(const std::string &)
const std::string describeSegmentPath() const
void addClassBpvMap(const ClassBpvMap_T &)
std::map< const ClassCode_T, YieldValue_T > ClassYieldMap_T
void addClassObjectIDMap(const ClassObjectIDMap_T &)
std::map< const ClassCode_T, const BidPriceVector_T * > ClassBpvMap_T