Class representing the actual attributes for an airline booking class. More...
#include <stdair/bom/Bucket.hpp>
Class representing the actual attributes for an airline booking class.
typedef BucketKey stdair::Bucket::Key_T |
Definition allowing to retrieve the associated BOM key type.
Definition at line 39 of file Bucket.hpp.
stdair::Bucket::Bucket | ( | const Key_T & | iKey | ) | [protected] |
Default constructor.
Definition at line 24 of file Bucket.cpp.
stdair::Bucket::~Bucket | ( | ) | [protected, virtual] |
Destructor.
Definition at line 28 of file Bucket.cpp.
const Key_T& stdair::Bucket::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::Bucket::getParent | ( | ) | const [inline] |
const HolderMap_T& stdair::Bucket::getHolderMap | ( | ) | const [inline] |
const SeatIndex_T& stdair::Bucket::getSeatIndex | ( | ) | const [inline] |
Get the seat index (part of the primary key).
Definition at line 63 of file Bucket.hpp.
References _key, and stdair::BucketKey::getSeatIndex().
const Yield_T& stdair::Bucket::getYieldRangeUpperValue | ( | ) | const [inline] |
Get the upper yield range.
Definition at line 68 of file Bucket.hpp.
References _yieldRangeUpperValue.
const CabinCapacity_T& stdair::Bucket::getAvailability | ( | ) | const [inline] |
const NbOfSeats_T& stdair::Bucket::getSoldSeats | ( | ) | const [inline] |
Get the number of seats already sold.
Definition at line 78 of file Bucket.hpp.
References _soldSeats.
void stdair::Bucket::setYieldRangeUpperValue | ( | const Yield_T & | iYield | ) | [inline] |
Set the upper yield range.
Definition at line 85 of file Bucket.hpp.
References _yieldRangeUpperValue.
void stdair::Bucket::setAvailability | ( | const CabinCapacity_T & | iAvl | ) | [inline] |
void stdair::Bucket::setSoldSeats | ( | const NbOfSeats_T & | iSoldSeats | ) | [inline] |
Set the number of seats already sold.
Definition at line 95 of file Bucket.hpp.
References _soldSeats.
void stdair::Bucket::toStream | ( | std::ostream & | ioOut | ) | const [inline, virtual] |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 107 of file Bucket.hpp.
References toString().
void stdair::Bucket::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 116 of file Bucket.hpp.
std::string stdair::Bucket::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 32 of file Bucket.cpp.
References describeKey().
Referenced by toStream().
const std::string stdair::Bucket::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 127 of file Bucket.hpp.
References _key, and stdair::BucketKey::toString().
Referenced by toString().
void stdair::Bucket::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
friend class FacBom [friend] |
Definition at line 30 of file Bucket.hpp.
friend class FacBomManager [friend] |
Definition at line 31 of file Bucket.hpp.
friend class boost::serialization::access [friend] |
Definition at line 32 of file Bucket.hpp.
Key_T stdair::Bucket::_key [protected] |
Primary key (upper yield range).
Definition at line 178 of file Bucket.hpp.
Referenced by serialize(), getKey(), getSeatIndex(), and describeKey().
BomAbstract* stdair::Bucket::_parent [protected] |
Pointer on the parent class (LegCabin).
Definition at line 183 of file Bucket.hpp.
Referenced by getParent().
HolderMap_T stdair::Bucket::_holderMap [protected] |
Map holding the children (empty for now).
Definition at line 188 of file Bucket.hpp.
Referenced by getHolderMap().
Yield_T stdair::Bucket::_yieldRangeUpperValue [protected] |
Upper yield range.
Definition at line 196 of file Bucket.hpp.
Referenced by getYieldRangeUpperValue(), and setYieldRangeUpperValue().
CabinCapacity_T stdair::Bucket::_availability [protected] |
Availability.
Definition at line 201 of file Bucket.hpp.
Referenced by getAvailability(), and setAvailability().
NbOfSeats_T stdair::Bucket::_soldSeats [protected] |
Number of seats already sold.
Definition at line 206 of file Bucket.hpp.
Referenced by getSoldSeats(), and setSoldSeats().