SimCRS Logo  1.00.0
C++ Simulated Travel-Oriented Distribution System Library
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
DistributionManager.hpp
Go to the documentation of this file.
1 #ifndef __SIMCRS_CMD_DISTRIBUTIONMANAGER_HPP
2 #define __SIMCRS_CMD_DISTRIBUTIONMANAGER_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
8 #include <stdair/stdair_basic_types.hpp>
9 #include <stdair/bom/TravelSolutionTypes.hpp>
10 // Airinv
11 #include <airinv/AIRINV_Types.hpp>
12 // Simcrs
13 #include <simcrs/SIMCRS_Types.hpp>
14 
15 // Forward declarations
16 namespace stdair {
17  struct TravelSolutionStruct;
18  struct CancellationStruct;
19 }
20 
21 namespace AIRINV {
22  class AIRINV_Master_Service;
23 }
24 
25 namespace SIMCRS {
26 
31  friend class SIMCRS_Service;
32  private:
34  static void calculateAvailability (AIRINV::AIRINV_Master_Service&,
35  stdair::TravelSolutionList_T&);
36 
38  static bool sell (AIRINV::AIRINV_Master_Service&,
39  const stdair::TravelSolutionStruct&,
40  const stdair::NbOfSeats_T&);
41 
43  static bool playCancellation (AIRINV::AIRINV_Master_Service&,
44  const stdair::CancellationStruct&);
45 
46  private:
51  ~DistributionManager() {}
52  };
53 
54 }
55 #endif // __SIMCRS_CMD_DISTRIBUTIONMANAGER_HPP