30 const std::string& iFullKeyStr) {
39 return oInventory_ptr;
50 return oInventory_ptr;
63 return oInventory_ptr;
69 const std::string& iFullKeyStr) {
75 if (oInventory_ptr == NULL) {
76 return oFlightDate_ptr;
78 assert (oInventory_ptr != NULL);
84 oFlightDate_ptr = oInventory_ptr->
getFlightDate (lFlightDateKey);
86 return oFlightDate_ptr;
94 const Date_T& iFlightDateDate) {
100 if (oInventory_ptr == NULL) {
101 return oFlightDate_ptr;
103 assert (oInventory_ptr != NULL);
107 iFlightNumber, iFlightDateDate);
109 return oFlightDate_ptr;
115 const std::string& iFullKeyStr) {
124 return oFlightDate_ptr;
136 return oFlightDate_ptr;
143 const Date_T& iFlightDateDate) {
150 return oFlightDate_ptr;
156 const std::string& iFullKeyStr) {
162 if (oFlightDate_ptr == NULL) {
163 return oSegmentDate_ptr;
165 assert (oFlightDate_ptr != NULL);
171 oSegmentDate_ptr = oFlightDate_ptr->
getSegmentDate (lSegmentDateKey);
173 return oSegmentDate_ptr;
179 const std::string& iFullKeyStr) {
186 return oSegmentDate_ptr;
191 if (lFlightDate_ptr == NULL) {
194 return oSegmentDate_ptr;
199 if (oSegmentDate_ptr == NULL) {
202 return oSegmentDate_ptr;
205 return oSegmentDate_ptr;
211 const std::string& iFullKeyStr) {
220 return oSegmentDate_ptr;
232 return oSegmentDate_ptr;
246 return oSegmentDate_ptr;
252 const std::string& iFullKeyStr,
259 if (lSegmentDate_ptr == NULL) {
260 return oBookingClass_ptr;
262 assert (lSegmentDate_ptr != NULL);
266 BomManager::getObjectPtr<BookingClass> (*lSegmentDate_ptr, iClassCode);
268 return oBookingClass_ptr;
283 getObjectPtr<AirportPair> (iBomRoot, lAirportPairKey.
toString());
285 return oAirportPair_ptr;
297 BomManager::getList<DatePeriod> (iAirportPair);
300 for (DatePeriodList_T::const_iterator itDateRange =
301 lFareDatePeriodList.begin();
302 itDateRange != lFareDatePeriodList.end(); ++itDateRange) {
304 DatePeriod* lCurrentFareDatePeriod_ptr = *itDateRange ;
305 assert (lCurrentFareDatePeriod_ptr != NULL);
308 const bool isDepartureDateValid =
313 if (isDepartureDateValid ==
true) {
314 ioDatePeriodList.push_back(lCurrentFareDatePeriod_ptr);
332 if (oAirportPair_ptr == NULL) {
335 assert (oAirportPair_ptr != NULL);
353 if (lInventory_ptr == NULL) {
354 std::ostringstream oStr;
355 oStr <<
"The inventory corresponding to the '"
365 if (lFlightDate_ptr == NULL) {
366 std::ostringstream oStr;
367 oStr <<
"The flight-date corresponding to ("
378 if (lLegDate_ptr == NULL) {
379 std::ostringstream oStr;
380 oStr <<
"The leg-date corresponding to the '"
387 oLegCabin_ptr = lLegDate_ptr->
getLegCabin (lLegCabinKey);
389 if (oLegCabin_ptr == NULL) {
390 std::ostringstream oStr;
391 oStr <<
"The leg-cabin corresponding to the '"
396 assert (oLegCabin_ptr != NULL);
397 return *oLegCabin_ptr;
411 if (lInventory_ptr == NULL) {
412 std::ostringstream oStr;
413 oStr <<
"The inventory corresponding to the '"
423 if (lFlightDate_ptr == NULL) {
424 std::ostringstream oStr;
425 oStr <<
"The flight-date corresponding to ("
436 if (lSegmentDate_ptr == NULL) {
437 std::ostringstream oStr;
438 oStr <<
"The segment-date corresponding to the '"
447 BomManager::getObjectPtr<SegmentCabin> (*lSegmentDate_ptr, lSegmentCabinKey.
toString());
449 if (oSegmentCabin_ptr == NULL) {
450 std::ostringstream oStr;
451 oStr <<
"The segment-cabin corresponding to the '"
456 assert (oSegmentCabin_ptr != NULL);
457 return *oSegmentCabin_ptr;