Class representing the actual attributes for an airline segment-date. More...
#include <stdair/bom/SegmentDate.hpp>
Class representing the actual attributes for an airline segment-date.
Definition at line 33 of file SegmentDate.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 43 of file SegmentDate.hpp.
stdair::SegmentDate::SegmentDate | ( | const Key_T & | iKey | ) | [protected] |
Constructor.
Definition at line 31 of file SegmentDate.cpp.
stdair::SegmentDate::~SegmentDate | ( | ) | [protected, virtual] |
Destructor.
Definition at line 37 of file SegmentDate.cpp.
const Key_T& stdair::SegmentDate::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::SegmentDate::getParent | ( | ) | const [inline] |
const AirportCode_T& stdair::SegmentDate::getBoardingPoint | ( | ) | const [inline] |
Get the boarding point (part of the primary key).
Definition at line 59 of file SegmentDate.hpp.
References _key, and stdair::SegmentDateKey::getBoardingPoint().
const AirportCode_T& stdair::SegmentDate::getOffPoint | ( | ) | const [inline] |
Get the off point (part of the primary key).
Definition at line 64 of file SegmentDate.hpp.
References _key, and stdair::SegmentDateKey::getOffPoint().
const HolderMap_T& stdair::SegmentDate::getHolderMap | ( | ) | const [inline] |
Get the map of children holders.
Definition at line 69 of file SegmentDate.hpp.
References _holderMap.
const Date_T& stdair::SegmentDate::getBoardingDate | ( | ) | const [inline] |
const Duration_T& stdair::SegmentDate::getBoardingTime | ( | ) | const [inline] |
const Date_T& stdair::SegmentDate::getOffDate | ( | ) | const [inline] |
const Duration_T& stdair::SegmentDate::getOffTime | ( | ) | const [inline] |
const Duration_T& stdair::SegmentDate::getElapsedTime | ( | ) | const [inline] |
const Distance_T& stdair::SegmentDate::getDistance | ( | ) | const [inline] |
const DateOffset_T stdair::SegmentDate::getDateOffset | ( | ) | const [inline] |
Get the date offset (off date - boarding date).
Definition at line 104 of file SegmentDate.hpp.
References _boardingDate, and _offDate.
Referenced by getTimeOffset().
const Duration_T stdair::SegmentDate::getTimeOffset | ( | ) | const |
Get the time offset between boarding and off points.
It is defined as being:
TimeOffset = (OffTime - BoardingTime) + (OffDate - BoardingDate) * 24
Definition at line 48 of file SegmentDate.cpp.
References _boardingTime, _elapsedTime, _offTime, and getDateOffset().
SegmentDate* stdair::SegmentDate::getOperatingSegmentDate | ( | ) | const [inline] |
Get the "operating" segment date.
Definition at line 121 of file SegmentDate.hpp.
References _operatingSegmentDate.
const SegmentDateList_T& stdair::SegmentDate::getMarketingSegmentDateList | ( | ) | const [inline] |
Get the list of marketing segment dates.
Definition at line 128 of file SegmentDate.hpp.
References _marketingSegmentDateList.
void stdair::SegmentDate::setBoardingDate | ( | const Date_T & | iBoardingDate | ) | [inline] |
void stdair::SegmentDate::setBoardingTime | ( | const Duration_T & | iBoardingTime | ) | [inline] |
void stdair::SegmentDate::setOffDate | ( | const Date_T & | iOffDate | ) | [inline] |
void stdair::SegmentDate::setOffTime | ( | const Duration_T & | iOffTime | ) | [inline] |
void stdair::SegmentDate::setElapsedTime | ( | const Duration_T & | iElapsedTime | ) | [inline] |
void stdair::SegmentDate::setDistance | ( | const Distance_T & | iDistance | ) | [inline] |
void stdair::SegmentDate::linkWithOperating | ( | SegmentDate & | iSegmentDate | ) | [inline] |
Set operating segment date.
Definition at line 165 of file SegmentDate.hpp.
References _operatingSegmentDate.
void stdair::SegmentDate::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 176 of file SegmentDate.hpp.
References toString().
void stdair::SegmentDate::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 185 of file SegmentDate.hpp.
std::string stdair::SegmentDate::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 41 of file SegmentDate.cpp.
References describeKey().
Referenced by toStream().
const std::string stdair::SegmentDate::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 196 of file SegmentDate.hpp.
References _key, and stdair::SegmentDateKey::toString().
Referenced by stdair::SegmentCabin::getFullerKey(), and toString().
void stdair::SegmentDate::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
friend class FacBom [friend] |
Definition at line 34 of file SegmentDate.hpp.
friend class FacBomManager [friend] |
Definition at line 35 of file SegmentDate.hpp.
friend class boost::serialization::access [friend] |
Definition at line 36 of file SegmentDate.hpp.
Key_T stdair::SegmentDate::_key [protected] |
Primary key (origin and destination).
Definition at line 250 of file SegmentDate.hpp.
Referenced by describeKey(), getBoardingPoint(), getKey(), getOffPoint(), and serialize().
BomAbstract* stdair::SegmentDate::_parent [protected] |
Pointer on the parent class (FlightDate).
Definition at line 255 of file SegmentDate.hpp.
Referenced by getParent().
HolderMap_T stdair::SegmentDate::_holderMap [protected] |
Map holding the children (SegmentCabin objects).
Definition at line 260 of file SegmentDate.hpp.
Referenced by getHolderMap().
SegmentDate* stdair::SegmentDate::_operatingSegmentDate [protected] |
Pointer on the operating SegmentDate. Nota:
Definition at line 268 of file SegmentDate.hpp.
Referenced by getOperatingSegmentDate(), and linkWithOperating().
List holding the marketing segment dates. Nota:
Definition at line 276 of file SegmentDate.hpp.
Referenced by getMarketingSegmentDateList().
Date_T stdair::SegmentDate::_boardingDate [protected] |
Boarding date.
Definition at line 281 of file SegmentDate.hpp.
Referenced by getBoardingDate(), getDateOffset(), and setBoardingDate().
Duration_T stdair::SegmentDate::_boardingTime [protected] |
Boarding time.
Definition at line 286 of file SegmentDate.hpp.
Referenced by getBoardingTime(), getTimeOffset(), and setBoardingTime().
Date_T stdair::SegmentDate::_offDate [protected] |
Landing date.
Definition at line 291 of file SegmentDate.hpp.
Referenced by getDateOffset(), getOffDate(), and setOffDate().
Duration_T stdair::SegmentDate::_offTime [protected] |
Landing time.
Definition at line 296 of file SegmentDate.hpp.
Referenced by getOffTime(), getTimeOffset(), and setOffTime().
Duration_T stdair::SegmentDate::_elapsedTime [protected] |
Trip elapsed time.
Definition at line 301 of file SegmentDate.hpp.
Referenced by getElapsedTime(), getTimeOffset(), and setElapsedTime().
Distance_T stdair::SegmentDate::_distance [protected] |
Trip distance.
Definition at line 306 of file SegmentDate.hpp.
Referenced by getDistance(), and setDistance().