$treeview $search $mathjax
#include <stdair/bom/SegmentDate.hpp>
Inheritance diagram for stdair::SegmentDate:
Definition at line 36 of file SegmentDate.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 47 of file SegmentDate.hpp.
stdair::SegmentDate::SegmentDate | ( | const Key_T & | ) | [protected] |
Constructor.
Definition at line 38 of file SegmentDate.cpp.
stdair::SegmentDate::~SegmentDate | ( | ) | [protected, virtual] |
Destructor.
Definition at line 44 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 69 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 76 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 83 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 132 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 55 of file SegmentDate.cpp.
References _boardingTime, _elapsedTime, _offTime, and getDateOffset().
SegmentDate* stdair::SegmentDate::getOperatingSegmentDate | ( | ) | const [inline] |
Get the "operating" segment date.
Definition at line 149 of file SegmentDate.hpp.
References _operatingSegmentDate.
const SegmentDateList_T& stdair::SegmentDate::getMarketingSegmentDateList | ( | ) | const [inline] |
Get the list of marketing segment dates.
Definition at line 156 of file SegmentDate.hpp.
References _marketingSegmentDateList.
const RoutingLegKeyList_T& stdair::SegmentDate::getLegKeyList | ( | ) | const [inline] |
Get the list of routing leg keys.
Definition at line 163 of file SegmentDate.hpp.
References _routingLegKeyList.
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::addLegKey | ( | const std::string & | iLegKey | ) | [inline] |
Add a routing leg key to the list.
Definition at line 214 of file SegmentDate.hpp.
References _routingLegKeyList.
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 233 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 242 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 48 of file SegmentDate.cpp.
References describeKey().
Referenced by stdair::BomRetriever::retrieveDummySegmentCabin(), and toStream().
const std::string stdair::SegmentDate::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 253 of file SegmentDate.hpp.
References _key, and stdair::SegmentDateKey::toString().
Referenced by stdair::SegmentCabin::getFullerKey(), stdair::BomRetriever::retrieveFullKeyFromSegmentDate(), and toString().
void stdair::SegmentDate::serialize | ( | Archive & | ar, | |
const unsigned int | iFileVersion | |||
) |
friend class FacBom [friend] |
Definition at line 37 of file SegmentDate.hpp.
friend class FacCloneBom [friend] |
Definition at line 38 of file SegmentDate.hpp.
friend class FacBomManager [friend] |
Definition at line 39 of file SegmentDate.hpp.
friend class boost::serialization::access [friend] |
Definition at line 40 of file SegmentDate.hpp.
Key_T stdair::SegmentDate::_key [protected] |
Primary key (origin and destination).
Definition at line 307 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 312 of file SegmentDate.hpp.
Referenced by getParent().
HolderMap_T stdair::SegmentDate::_holderMap [protected] |
Map holding the children (SegmentCabin objects).
Definition at line 317 of file SegmentDate.hpp.
Referenced by getHolderMap().
SegmentDate* stdair::SegmentDate::_operatingSegmentDate [protected] |
Pointer on the operating SegmentDate. Nota: 1. "operating" refers to the codeshare contract seller. 2. the pointer will be NULL if the segment date is itself the "operating" one.
Definition at line 325 of file SegmentDate.hpp.
Referenced by getOperatingSegmentDate().
List holding the marketing segment dates. Nota: 1. "marketing" refers to the codeshare contract seller. 2. the list will be empty if the segment date is itself the "marketing" one.
Definition at line 333 of file SegmentDate.hpp.
Referenced by getMarketingSegmentDateList().
Date_T stdair::SegmentDate::_boardingDate [protected] |
Boarding date.
Definition at line 338 of file SegmentDate.hpp.
Referenced by getBoardingDate(), getDateOffset(), and setBoardingDate().
Duration_T stdair::SegmentDate::_boardingTime [protected] |
Boarding time.
Definition at line 343 of file SegmentDate.hpp.
Referenced by getBoardingTime(), getTimeOffset(), and setBoardingTime().
Date_T stdair::SegmentDate::_offDate [protected] |
Landing date.
Definition at line 348 of file SegmentDate.hpp.
Referenced by getDateOffset(), getOffDate(), and setOffDate().
Duration_T stdair::SegmentDate::_offTime [protected] |
Landing time.
Definition at line 353 of file SegmentDate.hpp.
Referenced by getOffTime(), getTimeOffset(), and setOffTime().
Duration_T stdair::SegmentDate::_elapsedTime [protected] |
Trip elapsed time.
Definition at line 358 of file SegmentDate.hpp.
Referenced by getElapsedTime(), getTimeOffset(), and setElapsedTime().
Distance_T stdair::SegmentDate::_distance [protected] |
Trip distance.
Definition at line 363 of file SegmentDate.hpp.
Referenced by getDistance(), and setDistance().
List of routing leg keys.
Definition at line 368 of file SegmentDate.hpp.
Referenced by addLegKey(), and getLegKeyList().