24 LegDate::LegDate (
const LegDate& iLegDate) :
27 _offPoint (iLegDate._offPoint),
28 _boardingDate (iLegDate._boardingDate),
29 _boardingTime (iLegDate._boardingTime),
30 _offDate (iLegDate._offDate),
31 _offTime (iLegDate._offTime ),
32 _elapsedTime (iLegDate._elapsedTime),
33 _distance (iLegDate._distance),
34 _capacity (iLegDate._capacity) {
38 LegDate::LegDate (
const Key_T& iKey)
51 assert (lFlightDate_ptr != NULL);
57 std::ostringstream oStr;
66 assert (lFlightDate_ptr != NULL);
67 std::ostringstream oStr;
78 BomManager::getObjectPtr<LegCabin> (*
this, iLegCabinKeyStr);
95 const Duration_T lDateOffsetInHours (lDateOffset.days() * 24, 0, 0);
108 updateDistanceFromElapsedTime();
112 void LegDate::updateDistanceFromElapsedTime() {
114 const double lElapseInHours =
BomAbstract *const getParent() const
const Distance_T DEFAULT_DISTANCE_VALUE
const Date_T & getDepartureDate() const
Class representing the actual attributes for an airline leg-cabin.
const AirportCode_T DEFAULT_ORIGIN
const std::string toString() const
FlightNumber_T _operatingFlightNumber
const unsigned int DEFAULT_FLIGHT_SPEED
Handle on the StdAir library context.
boost::posix_time::time_duration Duration_T
const CabinCapacity_T DEFAULT_CABIN_CAPACITY
const std::string describeKey() const
const std::string DEFAULT_KEY_FLD_DELIMITER
LegCabin * getLegCabin(const std::string &iLegCabinKeyStr) const
const Duration_T getTimeOffset() const
std::string AirlineCode_T
std::string toString() const
AirlineCode_T _operatingAirlineCode
const AirlineCode_T & getAirlineCode() const
const std::string describeRoutingKey() const
const AirlineCode_T & getAirlineCode() const
Key of a given leg-cabin, made of a cabin code (only).
boost::gregorian::date_duration DateOffset_T
const DateOffset_T getDateOffset() const
Class representing the actual attributes for an airline flight-date.
void setElapsedTime(const Duration_T &)
unsigned long int Distance_T