#include <stdair/bom/LegDate.hpp>
Class representing the actual attributes for an airline leg-date.
Definition at line 25 of file LegDate.hpp.
typedef LegDateKey stdair::LegDate::Key_T |
Definition allowing to retrieve the associated BOM key type.
Definition at line 32 of file LegDate.hpp.
stdair::LegDate::LegDate | ( | const Key_T & | iKey | ) | [protected] |
Constructor.
Definition at line 28 of file LegDate.cpp.
stdair::LegDate::~LegDate | ( | ) | [protected, virtual] |
Destructor.
Definition at line 34 of file LegDate.cpp.
const Key_T& stdair::LegDate::getKey | ( | ) | const [inline] |
BomAbstract* const stdair::LegDate::getParent | ( | ) | const [inline] |
Get the parent object.
Definition at line 43 of file LegDate.hpp.
References _parent.
Referenced by getAirlineCode().
const AirportCode_T& stdair::LegDate::getBoardingPoint | ( | ) | const [inline] |
Get the boarding point (part of the primary key).
Definition at line 48 of file LegDate.hpp.
References _key, and stdair::LegDateKey::getBoardingPoint().
const AirlineCode_T & stdair::LegDate::getAirlineCode | ( | ) | const |
Get the airline code (key of the parent object).
Definition at line 38 of file LegDate.cpp.
References stdair::FlightDate::getAirlineCode(), and getParent().
const HolderMap_T& stdair::LegDate::getHolderMap | ( | ) | const [inline] |
LegCabin * stdair::LegDate::getLegCabin | ( | const std::string & | iLegCabinKeyStr | ) | const |
Get a pointer on the LegCabin object corresponding to the given key.
const | std::string& The leg-cabin key. |
Definition at line 53 of file LegDate.cpp.
Referenced by getLegCabin(), and stdair::BomRetriever::retrieveDummyLegCabin().
LegCabin * stdair::LegDate::getLegCabin | ( | const LegCabinKey & | iLegCabinKey | ) | const |
Get a pointer on the LegCabin object corresponding to the given key.
const | LegCabinKey& The leg-cabin key |
Definition at line 60 of file LegDate.cpp.
References getLegCabin(), and stdair::LegCabinKey::toString().
const AirportCode_T& stdair::LegDate::getOffPoint | ( | ) | const [inline] |
const Date_T& stdair::LegDate::getBoardingDate | ( | ) | const [inline] |
const Duration_T& stdair::LegDate::getBoardingTime | ( | ) | const [inline] |
const Date_T& stdair::LegDate::getOffDate | ( | ) | const [inline] |
const Duration_T& stdair::LegDate::getOffTime | ( | ) | const [inline] |
const Duration_T& stdair::LegDate::getElapsedTime | ( | ) | const [inline] |
const Distance_T& stdair::LegDate::getDistance | ( | ) | const [inline] |
const CabinCapacity_T& stdair::LegDate::getCapacity | ( | ) | const [inline] |
const DateOffset_T stdair::LegDate::getDateOffset | ( | ) | const [inline] |
Get the date offset (off date - boarding date).
Definition at line 133 of file LegDate.hpp.
References _boardingDate, and _offDate.
Referenced by getTimeOffset().
const Duration_T stdair::LegDate::getTimeOffset | ( | ) | const |
Get the time off set between boarding and off points.
It is defined as being: TimeOffset = (OffTime - BoardingTime) + (OffDate - BoardingDate) * 24
Definition at line 65 of file LegDate.cpp.
References _boardingTime, _elapsedTime, _offTime, and getDateOffset().
void stdair::LegDate::setOffPoint | ( | const AirportCode_T & | iOffPoint | ) | [inline] |
void stdair::LegDate::setBoardingDate | ( | const Date_T & | iBoardingDate | ) | [inline] |
void stdair::LegDate::setBoardingTime | ( | const Duration_T & | iBoardingTime | ) | [inline] |
void stdair::LegDate::setOffDate | ( | const Date_T & | iOffDate | ) | [inline] |
void stdair::LegDate::setOffTime | ( | const Duration_T & | iOffTime | ) | [inline] |
void stdair::LegDate::setElapsedTime | ( | const Duration_T & | iElapsedTime | ) |
void stdair::LegDate::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 183 of file LegDate.hpp.
References toString().
void stdair::LegDate::fromStream | ( | std::istream & | ioIn | ) | [inline, virtual] |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 189 of file LegDate.hpp.
std::string stdair::LegDate::toString | ( | ) | const [virtual] |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 46 of file LegDate.cpp.
References describeKey().
Referenced by toStream().
const std::string stdair::LegDate::describeKey | ( | ) | const [inline] |
Get a string describing the key.
Definition at line 196 of file LegDate.hpp.
References _key, and stdair::LegDateKey::toString().
Referenced by stdair::LegCabin::getFullerKey(), and toString().
friend class FacBom [friend] |
Definition at line 26 of file LegDate.hpp.
friend class FacBomManager [friend] |
Definition at line 27 of file LegDate.hpp.
Key_T stdair::LegDate::_key [protected] |
Primary key (origin airport).
Definition at line 218 of file LegDate.hpp.
Referenced by describeKey(), getBoardingPoint(), and getKey().
BomAbstract* stdair::LegDate::_parent [protected] |
Pointer on the parent class (FlightDate).
Definition at line 221 of file LegDate.hpp.
Referenced by getParent().
HolderMap_T stdair::LegDate::_holderMap [protected] |
Map holding the children (LegCabin objects).
Definition at line 224 of file LegDate.hpp.
Referenced by getHolderMap().
AirportCode_T stdair::LegDate::_offPoint [protected] |
Landing airport.
Definition at line 227 of file LegDate.hpp.
Referenced by getOffPoint(), and setOffPoint().
Date_T stdair::LegDate::_boardingDate [protected] |
Boarding date.
Definition at line 230 of file LegDate.hpp.
Referenced by getBoardingDate(), getDateOffset(), and setBoardingDate().
Duration_T stdair::LegDate::_boardingTime [protected] |
Boarding time.
Definition at line 233 of file LegDate.hpp.
Referenced by getBoardingTime(), getTimeOffset(), and setBoardingTime().
Date_T stdair::LegDate::_offDate [protected] |
Landing date.
Definition at line 236 of file LegDate.hpp.
Referenced by getDateOffset(), getOffDate(), and setOffDate().
Duration_T stdair::LegDate::_offTime [protected] |
Landing time.
Definition at line 239 of file LegDate.hpp.
Referenced by getOffTime(), getTimeOffset(), and setOffTime().
Duration_T stdair::LegDate::_elapsedTime [protected] |
Trip elapsed time.
Definition at line 242 of file LegDate.hpp.
Referenced by getElapsedTime(), getTimeOffset(), and setElapsedTime().
Distance_T stdair::LegDate::_distance [protected] |
CabinCapacity_T stdair::LegDate::_capacity [protected] |
Aggregated capacity for all the leg-cabins.
Definition at line 248 of file LegDate.hpp.
Referenced by getCapacity().