Class representing the actual attributes for an airline booking class. More...
#include <stdair/bom/Bucket.hpp>
Public Types | |
typedef BucketKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
BomAbstract *const | getParent () const |
const HolderMap_T & | getHolderMap () const |
const SeatIndex_T & | getSeatIndex () const |
const Yield_T & | getYieldRangeUpperValue () const |
const CabinCapacity_T & | getAvailability () const |
const NbOfSeats_T & | getSoldSeats () const |
void | setYieldRangeUpperValue (const Yield_T &iYield) |
void | setAvailability (const CabinCapacity_T &iAvl) |
void | setSoldSeats (const NbOfSeats_T &iSoldSeats) |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int iFileVersion) |
Protected Member Functions | |
Bucket (const Key_T &) | |
virtual | ~Bucket () |
Protected Attributes | |
Key_T | _key |
BomAbstract * | _parent |
HolderMap_T | _holderMap |
Yield_T | _yieldRangeUpperValue |
CabinCapacity_T | _availability |
NbOfSeats_T | _soldSeats |
Friends | |
template<typename BOM > | |
class | FacBom |
template<typename BOM > | |
class | FacCloneBom |
class | FacBomManager |
class | boost::serialization::access |
Class representing the actual attributes for an airline booking class.
Definition at line 29 of file Bucket.hpp.
typedef BucketKey stdair::Bucket::Key_T |
Definition allowing to retrieve the associated BOM key type.
Definition at line 40 of file Bucket.hpp.
|
protected |
Default constructor.
Definition at line 34 of file Bucket.cpp.
|
protectedvirtual |
Destructor.
Definition at line 38 of file Bucket.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
Get the seat index (part of the primary key).
Definition at line 64 of file Bucket.hpp.
References _key, and stdair::BucketKey::getSeatIndex().
|
inline |
Get the upper yield range.
Definition at line 69 of file Bucket.hpp.
References _yieldRangeUpperValue.
|
inline |
|
inline |
Get the number of seats already sold.
Definition at line 79 of file Bucket.hpp.
References _soldSeats.
|
inline |
Set the upper yield range.
Definition at line 86 of file Bucket.hpp.
References _yieldRangeUpperValue.
|
inline |
|
inline |
Set the number of seats already sold.
Definition at line 96 of file Bucket.hpp.
References _soldSeats.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 108 of file Bucket.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 117 of file Bucket.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 42 of file Bucket.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 128 of file Bucket.hpp.
References _key, and stdair::BucketKey::toString().
Referenced by toString().
void stdair::Bucket::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
|
friend |
Definition at line 30 of file Bucket.hpp.
|
friend |
Definition at line 31 of file Bucket.hpp.
|
friend |
Definition at line 32 of file Bucket.hpp.
|
friend |
Definition at line 33 of file Bucket.hpp.
|
protected |
Primary key (upper yield range).
Definition at line 179 of file Bucket.hpp.
Referenced by describeKey(), getKey(), getSeatIndex(), and serialize().
|
protected |
Pointer on the parent class (LegCabin).
Definition at line 184 of file Bucket.hpp.
Referenced by getParent().
|
protected |
Map holding the children (empty for now).
Definition at line 189 of file Bucket.hpp.
Referenced by getHolderMap().
|
protected |
Upper yield range.
Definition at line 197 of file Bucket.hpp.
Referenced by getYieldRangeUpperValue(), and setYieldRangeUpperValue().
|
protected |
Availability.
Definition at line 202 of file Bucket.hpp.
Referenced by getAvailability(), and setAvailability().
|
protected |
Number of seats already sold.
Definition at line 207 of file Bucket.hpp.
Referenced by getSoldSeats(), and setSoldSeats().