AirInv Logo  0.1.2
C++ Simulated Airline Inventory Management System library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InventoryHelper.hpp
Go to the documentation of this file.
1 #ifndef __AIRINV_BOM_INVENTORYHELPER_HPP
2 #define __AIRINV_BOM_INVENTORYHELPER_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // STL
8 #include <string>
9 // StdAir
10 #include <stdair/stdair_basic_types.hpp>
11 
12 // Forward declarations
13 namespace stdair {
14  struct TravelSolutionStruct;
15  class Inventory;
16 }
17 
18 namespace AIRINV {
19 
23  public:
24  // ////////// Business Methods /////////
27  static void fillFromRouting (const stdair::Inventory&);
28 
30  static void calculateAvailability (const stdair::Inventory&,
31  const std::string&,
32  stdair::TravelSolutionStruct&);
33 
35  static void getYieldAndBidPrice (const stdair::Inventory&,
36  const std::string&,
37  stdair::TravelSolutionStruct&);
38 
40  static bool sell (stdair::Inventory&, const std::string& iSegmentDateKey,
41  const stdair::ClassCode_T&, const stdair::PartySize_T&);
42 
44  static bool cancel (stdair::Inventory&, const std::string& iSegmentDateKey,
45  const stdair::ClassCode_T&, const stdair::PartySize_T&);
46 
48  static void takeSnapshots (const stdair::Inventory&,
49  const stdair::DateTime_T&);
50  };
51 
52 }
53 #endif // __AIRINV_BOM_INVENTORYHELPER_HPP