#include <stdair/bom/LegDate.hpp>
Public Types | |
typedef LegDateKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
BomAbstract *const | getParent () const |
const AirportCode_T & | getBoardingPoint () const |
const AirlineCode_T & | getAirlineCode () const |
const HolderMap_T & | getHolderMap () const |
LegCabin * | getLegCabin (const std::string &iLegCabinKeyStr) const |
LegCabin * | getLegCabin (const LegCabinKey &) const |
const AirportCode_T & | getOffPoint () const |
const Date_T & | getBoardingDate () const |
const Duration_T & | getBoardingTime () const |
const Date_T & | getOffDate () const |
const Duration_T & | getOffTime () const |
const Duration_T & | getElapsedTime () const |
const Distance_T & | getDistance () const |
const CabinCapacity_T & | getCapacity () const |
const DateOffset_T | getDateOffset () const |
const Duration_T | getTimeOffset () const |
void | setOffPoint (const AirportCode_T &iOffPoint) |
void | setBoardingDate (const Date_T &iBoardingDate) |
void | setBoardingTime (const Duration_T &iBoardingTime) |
void | setOffDate (const Date_T &iOffDate) |
void | setOffTime (const Duration_T &iOffTime) |
void | setElapsedTime (const Duration_T &) |
void | setOperatingAirlineCode (const AirlineCode_T &iAirlineCode) |
void | setOperatingFlightNumber (const FlightNumber_T &iFlightNumber) |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
const std::string | describeRoutingKey () const |
Protected Member Functions | |
LegDate (const Key_T &) | |
virtual | ~LegDate () |
Friends | |
template<typename BOM > | |
class | FacBom |
template<typename BOM > | |
class | FacCloneBom |
class | FacBomManager |
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 33 of file LegDate.hpp.
|
protected |
Constructor.
Definition at line 38 of file LegDate.cpp.
|
protectedvirtual |
Destructor.
Definition at line 44 of file LegDate.cpp.
|
inline |
|
inline |
Get the parent object.
Definition at line 44 of file LegDate.hpp.
References _parent.
Referenced by describeRoutingKey(), and getAirlineCode().
|
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().
|
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 & | iLegCabinKey | ) | 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().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void stdair::LegDate::setElapsedTime | ( | const Duration_T & | iElapsedTime | ) |
|
inline |
Set the operating airline code.
Definition at line 176 of file LegDate.hpp.
References _operatingAirlineCode.
|
inline |
Set the operating flight number.
Definition at line 181 of file LegDate.hpp.
References _operatingFlightNumber.
|
inlinevirtual |
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().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 200 of file LegDate.hpp.
|
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().
|
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 |
Definition at line 26 of file LegDate.hpp.
|
friend |
Definition at line 27 of file LegDate.hpp.
|
friend |
Definition at line 28 of file LegDate.hpp.
|
protected |
Primary key (origin airport).
Definition at line 231 of file LegDate.hpp.
Referenced by describeKey(), getBoardingPoint(), and getKey().
|
protected |
Pointer on the parent class (FlightDate).
Definition at line 234 of file LegDate.hpp.
Referenced by getParent().
|
protected |
Map holding the children (LegCabin objects).
Definition at line 237 of file LegDate.hpp.
Referenced by getHolderMap().
|
protected |
Landing airport.
Definition at line 240 of file LegDate.hpp.
Referenced by getOffPoint(), and setOffPoint().
|
protected |
Boarding date.
Definition at line 243 of file LegDate.hpp.
Referenced by getBoardingDate(), getDateOffset(), and setBoardingDate().
|
protected |
Boarding time.
Definition at line 246 of file LegDate.hpp.
Referenced by getBoardingTime(), getTimeOffset(), and setBoardingTime().
|
protected |
Landing date.
Definition at line 249 of file LegDate.hpp.
Referenced by getDateOffset(), getOffDate(), and setOffDate().
|
protected |
Landing time.
Definition at line 252 of file LegDate.hpp.
Referenced by getOffTime(), getTimeOffset(), and setOffTime().
|
protected |
Trip elapsed time.
Definition at line 255 of file LegDate.hpp.
Referenced by getElapsedTime(), getTimeOffset(), and setElapsedTime().
|
protected |
|
protected |
Aggregated capacity for all the leg-cabins.
Definition at line 261 of file LegDate.hpp.
Referenced by getCapacity().
|
protected |
Operating airline code.
Definition at line 264 of file LegDate.hpp.
Referenced by describeRoutingKey(), and setOperatingAirlineCode().
|
protected |
Operating flight number.
Definition at line 267 of file LegDate.hpp.
Referenced by describeRoutingKey(), and setOperatingFlightNumber().