|
From: <gsa...@us...> - 2010-11-02 16:02:38
|
Revision: 63
http://simcrs.svn.sourceforge.net/simcrs/?rev=63&view=rev
Author: gsabatier
Date: 2010-11-02 16:02:32 +0000 (Tue, 02 Nov 2010)
Log Message:
-----------
[dev] Adapted to the new SimFQT interface.
Modified Paths:
--------------
trunk/simcrs/simcrs/SIMCRS_Service.hpp
trunk/simcrs/simcrs/service/SIMCRS_Service.cpp
Modified: trunk/simcrs/simcrs/SIMCRS_Service.hpp
===================================================================
--- trunk/simcrs/simcrs/SIMCRS_Service.hpp 2010-10-20 12:59:20 UTC (rev 62)
+++ trunk/simcrs/simcrs/SIMCRS_Service.hpp 2010-11-02 16:02:32 UTC (rev 63)
@@ -91,6 +91,9 @@
// /////////// Business Methods /////////////
/** Get a list of travel solutions corresponding to the booking request. */
stdair::TravelSolutionList_T getTravelSolutions (const stdair::BookingRequestStruct&);
+
+ /** Get the fare for each travel solution in the list.. */
+ void getFare (stdair::TravelSolutionList_T&);
/** Get the availability for each travel solution in the list.. */
void getAvailability (stdair::TravelSolutionList_T&);
Modified: trunk/simcrs/simcrs/service/SIMCRS_Service.cpp
===================================================================
--- trunk/simcrs/simcrs/service/SIMCRS_Service.cpp 2010-10-20 12:59:20 UTC (rev 62)
+++ trunk/simcrs/simcrs/service/SIMCRS_Service.cpp 2010-11-02 16:02:32 UTC (rev 63)
@@ -309,8 +309,8 @@
}
// ////////////////////////////////////////////////////////////////////
- void SIMCRS_Service::
- getAvailability (stdair::TravelSolutionList_T& ioTravelSolutionList) {
+ void SIMCRS_Service::getFare (stdair::TravelSolutionList_T& ioTravelSolutionList) {
+
if (_simcrsServiceContext == NULL) {
throw NonInitialisedServiceException();
}
@@ -339,7 +339,18 @@
STDAIR_LOG_ERROR ("Exception: " << error.what());
throw AvailabilityRetrievalException();
}
+
}
+
+ // ////////////////////////////////////////////////////////////////////
+ void SIMCRS_Service::
+ getAvailability (stdair::TravelSolutionList_T& ioTravelSolutionList) {
+ if (_simcrsServiceContext == NULL) {
+ throw NonInitialisedServiceException();
+ }
+ assert (_simcrsServiceContext != NULL);
+ SIMCRS_ServiceContext& lSIMCRS_ServiceContext= *_simcrsServiceContext;
+ }
// ////////////////////////////////////////////////////////////////////
void SIMCRS_Service::sell(const stdair::TravelSolutionStruct& iTravelSolution,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|