AirInv Logo  0.1.2
C++ Simulated Airline Inventory Management System library
GuillotineBlockHelper.hpp
Go to the documentation of this file.
00001 #ifndef __AIRINV_BOM_GUILLOTINEBLOCKHELPER_HPP
00002 #define __AIRINV_BOM_GUILLOTINEBLOCKHELPER_HPP
00003 
00004 // //////////////////////////////////////////////////////////////////////
00005 // Import section
00006 // //////////////////////////////////////////////////////////////////////
00007 // STL
00008 #include <string>
00009 // StdAir
00010 #include <stdair/stdair_basic_types.hpp>
00011 
00012 // Forward declarations
00013 namespace stdair {
00014   class GuillotineBlock;
00015   class SegmentCabin;
00016 }
00017 
00018 namespace AIRINV {
00019   
00022   class GuillotineBlockHelper {
00023   public:
00024     // ////////// Business Methods /////////
00026     static void takeSnapshots (stdair::GuillotineBlock&,
00027                                const stdair::DateTime_T&);
00028   private:
00029     // ////////// Helpers for business methods. //////////
00031     static void takeSnapshots (stdair::GuillotineBlock&, const stdair::DTD_T&,
00032                                const stdair::SegmentCabin&,
00033                                const stdair::BlockNumber_T);
00034 
00036     static void registerProductAndPriceOrientedBookings 
00037     (stdair::GuillotineBlock&, const stdair::DTD_T&,
00038      const stdair::SegmentCabin&, const stdair::BlockNumber_T);
00039 
00041     static double getFRAT5Coefficient (const stdair::DTD_T&);
00042   };
00043 
00044 }
00045 #endif // __AIRINV_BOM_GUILLOTINEBLOCKHELPER_HPP