#include <stdair/bom/SegmentPeriod.hpp>
Public Types | |
typedef SegmentPeriodKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
BomAbstract *const | getParent () const |
const AirportCode_T & | getBoardingPoint () const |
const AirportCode_T & | getOffPoint () const |
const Duration_T & | getBoardingTime () const |
const Duration_T & | getOffTime () const |
const DateOffset_T & | getBoardingDateOffset () const |
const DateOffset_T & | getOffDateOffset () const |
const Duration_T & | getElapsedTime () const |
const CabinBookingClassMap_T & | getCabinBookingClassMap () const |
const HolderMap_T & | getHolderMap () const |
void | setBoardingTime (const Duration_T &iBoardingTime) |
void | setOffTime (const Duration_T &iOffTime) |
void | setBoardingDateOffset (const DateOffset_T &iDateOffset) |
void | setOffDateOffset (const DateOffset_T &iDateOffset) |
void | setElapsedTime (const Duration_T &iElapsedTime) |
void | addCabinBookingClassList (const CabinCode_T &, const ClassList_String_T &) |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
Protected Member Functions | |
SegmentPeriod (const Key_T &) | |
virtual | ~SegmentPeriod () |
Friends | |
class | FacBom |
class | FacCloneBom |
class | FacBomManager |
Class representing the actual attributes for an airline segment-period.
Definition at line 15 of file SegmentPeriod.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 23 of file SegmentPeriod.hpp.
|
protected |
Main constructor.
Definition at line 13 of file SegmentPeriod.cpp.
|
protectedvirtual |
Destructor.
Definition at line 29 of file SegmentPeriod.cpp.
|
inline |
|
inline |
|
inline |
Get the boarding point (part of the primary key).
Definition at line 34 of file SegmentPeriod.hpp.
References _key, and stdair::SegmentPeriodKey::getBoardingPoint().
|
inline |
Get the off point (part of the primary key).
Definition at line 39 of file SegmentPeriod.hpp.
References _key, and stdair::SegmentPeriodKey::getOffPoint().
|
inline |
|
inline |
|
inline |
Get the boarding date offset.
Definition at line 48 of file SegmentPeriod.hpp.
References _boardingDateOffset.
|
inline |
Get the off date offset.
Definition at line 53 of file SegmentPeriod.hpp.
References _offDateOffset.
|
inline |
|
inline |
Get the cabin booking class map.
Definition at line 59 of file SegmentPeriod.hpp.
References _cabinBookingClassMap.
|
inline |
Get the map of children holders.
Definition at line 64 of file SegmentPeriod.hpp.
References _holderMap.
|
inline |
|
inline |
|
inline |
Set the boarding date offset.
Definition at line 77 of file SegmentPeriod.hpp.
References _boardingDateOffset.
|
inline |
Set the off date offset.
Definition at line 82 of file SegmentPeriod.hpp.
References _offDateOffset.
|
inline |
void stdair::SegmentPeriod::addCabinBookingClassList | ( | const CabinCode_T & | iCabinCode, |
const ClassList_String_T & | iClassCodeList | ||
) |
Add a pair cabin code and list of class codes within the cabin to the cabin booking class map.
Definition at line 41 of file SegmentPeriod.cpp.
References _cabinBookingClassMap.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 100 of file SegmentPeriod.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 104 of file SegmentPeriod.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 33 of file SegmentPeriod.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 110 of file SegmentPeriod.hpp.
References _key, and stdair::SegmentPeriodKey::toString().
Referenced by toString().
|
friend |
Definition at line 16 of file SegmentPeriod.hpp.
|
friend |
Definition at line 17 of file SegmentPeriod.hpp.
|
friend |
Definition at line 18 of file SegmentPeriod.hpp.
|
protected |
Definition at line 135 of file SegmentPeriod.hpp.
Referenced by describeKey(), getBoardingPoint(), getKey(), and getOffPoint().
|
protected |
Definition at line 136 of file SegmentPeriod.hpp.
Referenced by getParent().
|
protected |
Definition at line 137 of file SegmentPeriod.hpp.
Referenced by getBoardingTime(), and setBoardingTime().
|
protected |
Definition at line 138 of file SegmentPeriod.hpp.
Referenced by getOffTime(), and setOffTime().
|
protected |
Definition at line 139 of file SegmentPeriod.hpp.
Referenced by getBoardingDateOffset(), and setBoardingDateOffset().
|
protected |
Definition at line 140 of file SegmentPeriod.hpp.
Referenced by getOffDateOffset(), and setOffDateOffset().
|
protected |
Definition at line 141 of file SegmentPeriod.hpp.
Referenced by getElapsedTime(), and setElapsedTime().
|
protected |
Definition at line 142 of file SegmentPeriod.hpp.
Referenced by addCabinBookingClassList(), and getCabinBookingClassMap().
|
protected |
Definition at line 143 of file SegmentPeriod.hpp.
Referenced by getHolderMap().