#include <stdair/bom/SegmentPeriod.hpp>
Class representing the actual attributes for an airline segment-period.
Definition allowing to retrieve the associated BOM key type.
Definition at line 22 of file SegmentPeriod.hpp.
stdair::SegmentPeriod::SegmentPeriod | ( | const Key_T & | iKey | ) | [protected] |
Default constructors.
Definition at line 13 of file SegmentPeriod.cpp.
stdair::SegmentPeriod::SegmentPeriod | ( | const SegmentPeriod & | ) | [protected] |
stdair::SegmentPeriod::~SegmentPeriod | ( | ) | [protected] |
Destructor.
Definition at line 18 of file SegmentPeriod.cpp.
const Key_T& stdair::SegmentPeriod::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::SegmentPeriod::getParent | ( | ) | const [inline] |
const AirportCode_T& stdair::SegmentPeriod::getBoardingPoint | ( | ) | const [inline] |
Get the boarding point (part of the primary key).
Definition at line 33 of file SegmentPeriod.hpp.
References _key, and stdair::SegmentPeriodKey::getBoardingPoint().
const AirportCode_T& stdair::SegmentPeriod::getOffPoint | ( | ) | const [inline] |
Get the off point (part of the primary key).
Definition at line 38 of file SegmentPeriod.hpp.
References _key, and stdair::SegmentPeriodKey::getOffPoint().
const Duration_T& stdair::SegmentPeriod::getBoardingTime | ( | ) | const [inline] |
const Duration_T& stdair::SegmentPeriod::getOffTime | ( | ) | const [inline] |
const DateOffset_T& stdair::SegmentPeriod::getBoardingDateOffset | ( | ) | const [inline] |
Get the boarding date offset.
Definition at line 47 of file SegmentPeriod.hpp.
References _boardingDateOffset.
const DateOffset_T& stdair::SegmentPeriod::getOffDateOffset | ( | ) | const [inline] |
Get the off date offset.
Definition at line 52 of file SegmentPeriod.hpp.
References _offDateOffset.
const Duration_T& stdair::SegmentPeriod::getElapsedTime | ( | ) | const [inline] |
const CabinBookingClassMap_T& stdair::SegmentPeriod::getCabinBookingClassMap | ( | ) | const [inline] |
Get the cabin booking class map.
Definition at line 58 of file SegmentPeriod.hpp.
References _cabinBookingClassMap.
const HolderMap_T& stdair::SegmentPeriod::getHolderMap | ( | ) | const [inline] |
Get the map of children holders.
Definition at line 63 of file SegmentPeriod.hpp.
References _holderMap.
void stdair::SegmentPeriod::setBoardingTime | ( | const Duration_T & | iBoardingTime | ) | [inline] |
void stdair::SegmentPeriod::setOffTime | ( | const Duration_T & | iOffTime | ) | [inline] |
void stdair::SegmentPeriod::setBoardingDateOffset | ( | const DateOffset_T & | iDateOffset | ) | [inline] |
Set the boarding date offset.
Definition at line 76 of file SegmentPeriod.hpp.
References _boardingDateOffset.
void stdair::SegmentPeriod::setOffDateOffset | ( | const DateOffset_T & | iDateOffset | ) | [inline] |
Set the off date offset.
Definition at line 81 of file SegmentPeriod.hpp.
References _offDateOffset.
void stdair::SegmentPeriod::setElapsedTime | ( | const Duration_T & | iElapsedTime | ) | [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 30 of file SegmentPeriod.cpp.
References _cabinBookingClassMap.
void stdair::SegmentPeriod::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 99 of file SegmentPeriod.hpp.
References toString().
void stdair::SegmentPeriod::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 103 of file SegmentPeriod.hpp.
std::string stdair::SegmentPeriod::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 22 of file SegmentPeriod.cpp.
References describeKey().
Referenced by toStream().
const std::string stdair::SegmentPeriod::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 109 of file SegmentPeriod.hpp.
References _key, and stdair::SegmentPeriodKey::toString().
Referenced by toString().
friend class FacBom [friend] |
Definition at line 16 of file SegmentPeriod.hpp.
friend class FacBomManager [friend] |
Definition at line 17 of file SegmentPeriod.hpp.
Key_T stdair::SegmentPeriod::_key [protected] |
Definition at line 120 of file SegmentPeriod.hpp.
Referenced by getKey(), getBoardingPoint(), getOffPoint(), and describeKey().
BomAbstract* stdair::SegmentPeriod::_parent [protected] |
Definition at line 121 of file SegmentPeriod.hpp.
Referenced by getParent().
Duration_T stdair::SegmentPeriod::_boardingTime [protected] |
Definition at line 122 of file SegmentPeriod.hpp.
Referenced by getBoardingTime(), and setBoardingTime().
Duration_T stdair::SegmentPeriod::_offTime [protected] |
Definition at line 123 of file SegmentPeriod.hpp.
Referenced by getOffTime(), and setOffTime().
Definition at line 124 of file SegmentPeriod.hpp.
Referenced by getBoardingDateOffset(), and setBoardingDateOffset().
DateOffset_T stdair::SegmentPeriod::_offDateOffset [protected] |
Definition at line 125 of file SegmentPeriod.hpp.
Referenced by getOffDateOffset(), and setOffDateOffset().
Duration_T stdair::SegmentPeriod::_elapsedTime [protected] |
Definition at line 126 of file SegmentPeriod.hpp.
Referenced by getElapsedTime(), and setElapsedTime().
Definition at line 127 of file SegmentPeriod.hpp.
Referenced by addCabinBookingClassList(), and getCabinBookingClassMap().
HolderMap_T stdair::SegmentPeriod::_holderMap [protected] |
Definition at line 128 of file SegmentPeriod.hpp.
Referenced by getHolderMap().