$treeview $search $mathjax
#include <stdair/bom/LegDate.hpp>
Inheritance diagram for stdair::LegDate:

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 33 of file LegDate.hpp.
| stdair::LegDate::LegDate | ( | const Key_T & | ) | [protected] |
Constructor.
Definition at line 38 of file LegDate.cpp.
| stdair::LegDate::~LegDate | ( | ) | [protected, virtual] |
Destructor.
Definition at line 44 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 44 of file LegDate.hpp.
References _parent.
Referenced by describeRoutingKey(), and getAirlineCode().
| const AirportCode_T& stdair::LegDate::getBoardingPoint | ( | ) | const [inline] |
Get the boarding point (part of the primary key).
Definition at line 49 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 48 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 76 of file LegDate.cpp.
Referenced by getLegCabin(), and stdair::BomRetriever::retrieveDummyLegCabin().
| LegCabin * stdair::LegDate::getLegCabin | ( | const LegCabinKey & | ) | const |
Get a pointer on the LegCabin object corresponding to the given key.
| const | LegCabinKey& The leg-cabin key |
Definition at line 83 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 134 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 88 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 & | ) |
| void stdair::LegDate::setOperatingAirlineCode | ( | const AirlineCode_T & | iAirlineCode | ) | [inline] |
Set the operating airline code.
Definition at line 176 of file LegDate.hpp.
References _operatingAirlineCode.
| void stdair::LegDate::setOperatingFlightNumber | ( | const FlightNumber_T & | iFlightNumber | ) | [inline] |
Set the operating flight number.
Definition at line 181 of file LegDate.hpp.
References _operatingFlightNumber.
| 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 194 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 200 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 56 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 207 of file LegDate.hpp.
References _key, and stdair::LegDateKey::toString().
Referenced by describeRoutingKey(), stdair::LegCabin::getFullerKey(), and toString().
| const std::string stdair::LegDate::describeRoutingKey | ( | ) | const |
Get a string describing the routing key.
Definition at line 63 of file LegDate.cpp.
References _operatingAirlineCode, _operatingFlightNumber, stdair::DEFAULT_KEY_FLD_DELIMITER, describeKey(), stdair::FlightDate::getDepartureDate(), and getParent().
friend class FacBom [friend] |
Definition at line 26 of file LegDate.hpp.
friend class FacCloneBom [friend] |
Definition at line 27 of file LegDate.hpp.
friend class FacBomManager [friend] |
Definition at line 28 of file LegDate.hpp.
Key_T stdair::LegDate::_key [protected] |
Primary key (origin airport).
Definition at line 231 of file LegDate.hpp.
Referenced by describeKey(), getBoardingPoint(), and getKey().
BomAbstract* stdair::LegDate::_parent [protected] |
Pointer on the parent class (FlightDate).
Definition at line 234 of file LegDate.hpp.
Referenced by getParent().
HolderMap_T stdair::LegDate::_holderMap [protected] |
Map holding the children (LegCabin objects).
Definition at line 237 of file LegDate.hpp.
Referenced by getHolderMap().
AirportCode_T stdair::LegDate::_offPoint [protected] |
Landing airport.
Definition at line 240 of file LegDate.hpp.
Referenced by getOffPoint(), and setOffPoint().
Date_T stdair::LegDate::_boardingDate [protected] |
Boarding date.
Definition at line 243 of file LegDate.hpp.
Referenced by getBoardingDate(), getDateOffset(), and setBoardingDate().
Duration_T stdair::LegDate::_boardingTime [protected] |
Boarding time.
Definition at line 246 of file LegDate.hpp.
Referenced by getBoardingTime(), getTimeOffset(), and setBoardingTime().
Date_T stdair::LegDate::_offDate [protected] |
Landing date.
Definition at line 249 of file LegDate.hpp.
Referenced by getDateOffset(), getOffDate(), and setOffDate().
Duration_T stdair::LegDate::_offTime [protected] |
Landing time.
Definition at line 252 of file LegDate.hpp.
Referenced by getOffTime(), getTimeOffset(), and setOffTime().
Duration_T stdair::LegDate::_elapsedTime [protected] |
Trip elapsed time.
Definition at line 255 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 261 of file LegDate.hpp.
Referenced by getCapacity().
AirlineCode_T stdair::LegDate::_operatingAirlineCode [protected] |
Operating airline code.
Definition at line 264 of file LegDate.hpp.
Referenced by describeRoutingKey(), and setOperatingAirlineCode().
Operating flight number.
Definition at line 267 of file LegDate.hpp.
Referenced by describeRoutingKey(), and setOperatingFlightNumber().
1.4.7
Generated on Sun Jun 7 15:18:20 2015 for StdAir by
1.4.7