RMOL Logo  1.00.0
C++ library of Revenue Management and Optimisation classes and functions
 All Classes Namespaces Files Functions Variables Typedefs Friends Pages
HistoricalBooking.hpp
Go to the documentation of this file.
1 #ifndef __RMOL_BOM_HISTORICALBOOKING_HPP
2 #define __RMOL_BOM_HISTORICALBOOKING_HPP
3 
4 // //////////////////////////////////////////////////////////////////////
5 // Import section
6 // //////////////////////////////////////////////////////////////////////
7 // StdAir
8 #include <stdair/stdair_basic_types.hpp>
9 #include <stdair/basic/StructAbstract.hpp>
10 
11 namespace RMOL {
12 
17  struct HistoricalBooking : public stdair::StructAbstract {
18 
19  public:
20  // /////////////////// Getters ////////////////////////
22  const stdair::NbOfBookings_T& getNbOfBookings() const {
23  return _numberOfBookings;
24  }
26  const stdair::NbOfBookings_T& getUnconstrainedDemand() const {
27  return _unconstrainedDemand;
28  }
31  const stdair::Flag_T& getFlag() const {
32  return _flag;
33  }
34 
35  public:
36  // ///////////////////// Setters /////////////////////
38  void setUnconstrainedDemand (const stdair::NbOfBookings_T& iDemand) {
39  _unconstrainedDemand = iDemand;
40  }
41 
43  void setParameters (const stdair::NbOfBookings_T, const stdair::Flag_T);
44 
45  public:
46  // ///////// Display Methods //////////
52  void toStream (std::ostream& ioOut) const;
53 
57  const std::string describe() const;
58 
62  void display () const;
63 
64  public:
65  // /////////// Constructors and destructor. ////////////
69  HistoricalBooking (const stdair::NbOfBookings_T, const stdair::Flag_T);
78 
82  virtual ~HistoricalBooking();
83 
84  private:
85  // //////////// Attributes ////////////
89  stdair::NbOfBookings_T _numberOfBookings;
90 
94  stdair::NbOfBookings_T _unconstrainedDemand;
95 
99  stdair::Flag_T _flag;
100  };
101 }
102 #endif // __RMOL_BOM_HISTORICALBOOKING_HPP