$treeview $search $mathjax
00001 #ifndef __RMOL_BOM_HISTORICALBOOKING_HPP 00002 #define __RMOL_BOM_HISTORICALBOOKING_HPP 00003 00004 // ////////////////////////////////////////////////////////////////////// 00005 // Import section 00006 // ////////////////////////////////////////////////////////////////////// 00007 // StdAir 00008 #include <stdair/stdair_basic_types.hpp> 00009 #include <stdair/basic/StructAbstract.hpp> 00010 00011 namespace RMOL { 00012 00017 struct HistoricalBooking : public stdair::StructAbstract { 00018 00019 public: 00020 // /////////////////// Getters //////////////////////// 00022 const stdair::NbOfBookings_T& getNbOfBookings() const { 00023 return _numberOfBookings; 00024 } 00026 const stdair::NbOfBookings_T& getUnconstrainedDemand() const { 00027 return _unconstrainedDemand; 00028 } 00031 const stdair::Flag_T& getFlag() const { 00032 return _flag; 00033 } 00034 00035 public: 00036 // ///////////////////// Setters ///////////////////// 00038 void setUnconstrainedDemand (const stdair::NbOfBookings_T& iDemand) { 00039 _unconstrainedDemand = iDemand; 00040 } 00041 00043 void setParameters (const stdair::NbOfBookings_T, const stdair::Flag_T); 00044 00045 public: 00046 // ///////// Display Methods ////////// 00052 void toStream (std::ostream& ioOut) const; 00053 00057 const std::string describe() const; 00058 00062 void display () const; 00063 00064 public: 00065 // /////////// Constructors and destructor. //////////// 00069 HistoricalBooking (const stdair::NbOfBookings_T, const stdair::Flag_T); 00073 HistoricalBooking(); 00077 HistoricalBooking (const HistoricalBooking&); 00078 00082 virtual ~HistoricalBooking(); 00083 00084 private: 00085 // //////////// Attributes //////////// 00089 stdair::NbOfBookings_T _numberOfBookings; 00090 00094 stdair::NbOfBookings_T _unconstrainedDemand; 00095 00099 stdair::Flag_T _flag; 00100 }; 00101 } 00102 #endif // __RMOL_BOM_HISTORICALBOOKING_HPP