16 _numberOfBookings (0.0),_unconstrainedDemand (0.0), _flag (false) {
22 const stdair::Flag_T iFlag)
23 : _numberOfBookings (iNbOfBookings),
24 _unconstrainedDemand (iNbOfBookings), _flag (iFlag) {
32 _flag (iHistoricalBooking.
getFlag()) {
41 (
const stdair::NbOfBookings_T iNbOfBookings,
const stdair::Flag_T iFlag) {
42 _numberOfBookings = iNbOfBookings;
43 _unconstrainedDemand = iNbOfBookings;
49 std::ostringstream ostr;
50 ostr <<
"Struct of hitorical booking, unconstrained demand and flag of " 51 <<
"censorship for a FlightDate/Class.";
60 const stdair::Flag_T fj =
getFlag();
61 ioOut << std::fixed << std::setprecision (2)
62 << bj <<
"; " << uj <<
"; " << fj << std::endl;
const std::string describe() const
void setParameters(const stdair::NbOfBookings_T, const stdair::Flag_T)
const stdair::Flag_T & getFlag() const
const stdair::NbOfBookings_T & getNbOfBookings() const
const stdair::NbOfBookings_T & getUnconstrainedDemand() const
virtual ~HistoricalBooking()
Structure keeping track, for a given class, of the number of historical bookings and of the censorshi...
void toStream(std::ostream &ioOut) const