TravelCCM Logo  0.5.3
C++ Travel Customer Choice Model Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
ChoiceManager.cpp
Go to the documentation of this file.
1 // //////////////////////////////////////////////////////////////////////
2 // Import section
3 // //////////////////////////////////////////////////////////////////////
4 // STL
5 #include <cassert>
6 // StdAir
7 #include <stdair/bom/TravelSolutionStruct.hpp>
8 #include <stdair/bom/BookingRequestStruct.hpp>
9 // TravelCCM
12 
13 namespace TRAVELCCM {
14 
15  // ////////////////////////////////////////////////////////////////////
16  const stdair::TravelSolutionStruct* ChoiceManager::
17  chooseTravelSolution (stdair::TravelSolutionList_T& ioTravelSolutionList,
18  const stdair::BookingRequestStruct& iBookingRequest) {
19  // Return the cheapest solution.
20  const stdair::TravelSolutionStruct* oTravelSolution_ptr =
21  PriceOrientedModel::chooseTravelSolution (ioTravelSolutionList,
22  iBookingRequest);
23  return oTravelSolution_ptr;
24  }
25 
26 }