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 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 29 of file SegmentDate.cpp.
stdair::SegmentDate::~SegmentDate | ( | ) | [protected, virtual] |
Destructor.
Definition at line 35 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 _offDate, and _boardingDate.
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 46 of file SegmentDate.cpp.
References _offTime, _boardingTime, getDateOffset(), and _elapsedTime.
const bool stdair::SegmentDate::isOtherAirlineOperating | ( | ) | const [inline] |
Check if an other airline is operating.
Definition at line 121 of file SegmentDate.hpp.
References _isOtherAirlineOperating.
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::setIsOtherAirlineOperating | ( | const bool | iBool | ) | [inline] |
Set the boolean saying if another airline is operating.
Definition at line 158 of file SegmentDate.hpp.
References _isOtherAirlineOperating.
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 169 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 178 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 39 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 189 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 239 of file SegmentDate.hpp.
Referenced by getKey(), getBoardingPoint(), getOffPoint(), describeKey(), and serialize().
BomAbstract* stdair::SegmentDate::_parent [protected] |
Pointer on the parent class (FlightDate).
Definition at line 244 of file SegmentDate.hpp.
Referenced by getParent().
HolderMap_T stdair::SegmentDate::_holderMap [protected] |
Map holding the children (SegmentCabin objects).
Definition at line 249 of file SegmentDate.hpp.
Referenced by getHolderMap().
bool stdair::SegmentDate::_isOtherAirlineOperating [protected] |
Flag saying if the "operating" segment is a different one.
Definition at line 254 of file SegmentDate.hpp.
Referenced by isOtherAirlineOperating(), and setIsOtherAirlineOperating().
Date_T stdair::SegmentDate::_boardingDate [protected] |
Boarding date.
Definition at line 259 of file SegmentDate.hpp.
Referenced by getBoardingDate(), getDateOffset(), and setBoardingDate().
Duration_T stdair::SegmentDate::_boardingTime [protected] |
Boarding time.
Definition at line 264 of file SegmentDate.hpp.
Referenced by getTimeOffset(), getBoardingTime(), and setBoardingTime().
Date_T stdair::SegmentDate::_offDate [protected] |
Landing date.
Definition at line 269 of file SegmentDate.hpp.
Referenced by getOffDate(), getDateOffset(), and setOffDate().
Duration_T stdair::SegmentDate::_offTime [protected] |
Landing time.
Definition at line 274 of file SegmentDate.hpp.
Referenced by getTimeOffset(), getOffTime(), and setOffTime().
Duration_T stdair::SegmentDate::_elapsedTime [protected] |
Trip elapsed time.
Definition at line 279 of file SegmentDate.hpp.
Referenced by getTimeOffset(), getElapsedTime(), and setElapsedTime().
Distance_T stdair::SegmentDate::_distance [protected] |
Trip distance.
Definition at line 284 of file SegmentDate.hpp.
Referenced by getDistance(), and setDistance().