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) {
51 assert (lFlightDate_ptr != NULL);
57 std::ostringstream oStr;
66 assert (lFlightDate_ptr != NULL);
67 std::ostringstream oStr;
95 const Duration_T lDateOffsetInHours (lDateOffset.days() * 24, 0, 0);
108 updateDistanceFromElapsedTime();
112 void LegDate::updateDistanceFromElapsedTime() {
114 const double lElapseInHours =
Handle on the StdAir library context.
boost::gregorian::date_duration DateOffset_T
unsigned long int Distance_T
const Distance_T DEFAULT_DISTANCE_VALUE
const AirportCode_T DEFAULT_ORIGIN
const CabinCapacity_T DEFAULT_CABIN_CAPACITY
std::string AirlineCode_T
boost::posix_time::time_duration Duration_T
const unsigned int DEFAULT_FLIGHT_SPEED
const std::string DEFAULT_KEY_FLD_DELIMITER
static OBJECT2 * getObjectPtr(const OBJECT1 &, const MapKey_T &)
Class representing the actual attributes for an airline flight-date.
const AirlineCode_T & getAirlineCode() const
const Date_T & getDepartureDate() const
Class representing the actual attributes for an airline leg-cabin.
Key of a given leg-cabin, made of a cabin code (only).
const std::string toString() const
CabinCapacity_T _capacity
void setElapsedTime(const Duration_T &)
AirlineCode_T _operatingAirlineCode
BomAbstract *const getParent() const
LegCabin * getLegCabin(const std::string &iLegCabinKeyStr) const
const DateOffset_T getDateOffset() const
FlightNumber_T _operatingFlightNumber
const std::string describeKey() const
const AirlineCode_T & getAirlineCode() const
const std::string describeRoutingKey() const
std::string toString() const
const Duration_T getTimeOffset() const