$treeview $search $mathjax
SimCRS Logo  1.01.1
$projectbrief
$projectbrief
$searchbox

DistributionManager.hpp

Go to the documentation of this file.
00001 #ifndef __SIMCRS_CMD_DISTRIBUTIONMANAGER_HPP
00002 #define __SIMCRS_CMD_DISTRIBUTIONMANAGER_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // StdAir
00008 #include <stdair/stdair_basic_types.hpp>
00009 #include <stdair/bom/TravelSolutionTypes.hpp>
00010 // Airinv
00011 #include <airinv/AIRINV_Types.hpp>
00012 // Simcrs
00013 #include <simcrs/SIMCRS_Types.hpp>
00014 
00015 // Forward declarations
00016 namespace stdair {
00017   struct TravelSolutionStruct;
00018   struct CancellationStruct;
00019 }
00020 
00021 namespace AIRINV {
00022   class AIRINV_Master_Service;
00023 }
00024 
00025 namespace SIMCRS {
00026 
00030   class DistributionManager {
00031     friend class SIMCRS_Service;
00032   private:
00034     static void calculateAvailability (AIRINV::AIRINV_Master_Service&,
00035                                        stdair::TravelSolutionList_T&);
00036     
00038     static bool sell (AIRINV::AIRINV_Master_Service&,
00039                       const stdair::TravelSolutionStruct&,
00040                       const stdair::NbOfSeats_T&);
00041 
00043     static bool playCancellation (AIRINV::AIRINV_Master_Service&,
00044                                   const stdair::CancellationStruct&);
00045 
00046   private:
00048     DistributionManager() {}
00049     DistributionManager(const DistributionManager&) {}
00051     ~DistributionManager() {}
00052   };
00053 
00054 }
00055 #endif // __SIMCRS_CMD_DISTRIBUTIONMANAGER_HPP