TravelCCM Logo  0.5.2
C++ Travel Customer Choice Model Library
ChoiceManager.cpp
Go to the documentation of this file.
00001 // //////////////////////////////////////////////////////////////////////
00002 // Import section
00003 // //////////////////////////////////////////////////////////////////////
00004 // STL
00005 #include <cassert>
00006 // StdAir
00007 #include <stdair/bom/TravelSolutionStruct.hpp>
00008 #include <stdair/bom/BookingRequestStruct.hpp>
00009 // TravelCCM
00010 #include <travelccm/bom/PriceOrientedModel.hpp>
00011 #include <travelccm/command/ChoiceManager.hpp>
00012 
00013 namespace TRAVELCCM {
00014 
00015   // ////////////////////////////////////////////////////////////////////
00016   const stdair::TravelSolutionStruct* ChoiceManager::
00017   chooseTravelSolution (stdair::TravelSolutionList_T& ioTravelSolutionList,
00018                         const stdair::BookingRequestStruct& iBookingRequest) {
00019     // Return the cheapest solution.
00020     const stdair::TravelSolutionStruct* oTravelSolution_ptr = 
00021       PriceOrientedModel::chooseTravelSolution (ioTravelSolutionList,
00022                                                 iBookingRequest);
00023     return oTravelSolution_ptr;
00024   }
00025 
00026 }