Class representing the actual attributes for an airline segment-date. More...
#include <stdair/bom/SegmentDate.hpp>
Public Types | |
typedef SegmentDateKey | Key_T |
Public Member Functions | |
const Key_T & | getKey () const |
BomAbstract *const | getParent () const |
const AirportCode_T & | getBoardingPoint () const |
const AirportCode_T & | getOffPoint () const |
const HolderMap_T & | getHolderMap () 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 DateOffset_T | getDateOffset () const |
const Duration_T | getTimeOffset () const |
SegmentDate * | getOperatingSegmentDate () const |
const SegmentDateList_T & | getMarketingSegmentDateList () const |
const RoutingLegKeyList_T & | getLegKeyList () const |
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 &iElapsedTime) |
void | setDistance (const Distance_T &iDistance) |
void | addLegKey (const std::string &iLegKey) |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
std::string | toString () const |
const std::string | describeKey () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int iFileVersion) |
Protected Member Functions | |
SegmentDate (const Key_T &) | |
virtual | ~SegmentDate () |
Friends | |
class | FacBom |
class | FacCloneBom |
class | FacBomManager |
class | boost::serialization::access |
Class representing the actual attributes for an airline segment-date.
Definition at line 36 of file SegmentDate.hpp.
Definition allowing to retrieve the associated BOM key type.
Definition at line 47 of file SegmentDate.hpp.
|
protected |
Constructor.
Definition at line 38 of file SegmentDate.cpp.
|
protectedvirtual |
Destructor.
Definition at line 44 of file SegmentDate.cpp.
|
inline |
|
inline |
|
inline |
Get the boarding point (part of the primary key).
Definition at line 69 of file SegmentDate.hpp.
References _key, and stdair::SegmentDateKey::getBoardingPoint().
|
inline |
Get the off point (part of the primary key).
Definition at line 76 of file SegmentDate.hpp.
References _key, and stdair::SegmentDateKey::getOffPoint().
|
inline |
Get the map of children holders.
Definition at line 83 of file SegmentDate.hpp.
References _holderMap.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the date offset (off date - boarding date).
Definition at line 132 of file SegmentDate.hpp.
References _boardingDate, and _offDate.
Referenced by getTimeOffset().
const Duration_T stdair::SegmentDate::getTimeOffset | ( | ) | const |
Get the time offset between boarding and off points.
It is defined as being:
TimeOffset = (OffTime - BoardingTime) + (OffDate - BoardingDate) * 24
Definition at line 55 of file SegmentDate.cpp.
References _boardingTime, _elapsedTime, _offTime, and getDateOffset().
|
inline |
Get the "operating" segment date.
Definition at line 149 of file SegmentDate.hpp.
References _operatingSegmentDate.
|
inline |
Get the list of marketing segment dates.
Definition at line 156 of file SegmentDate.hpp.
References _marketingSegmentDateList.
|
inline |
Get the list of routing leg keys.
Definition at line 163 of file SegmentDate.hpp.
References _routingLegKeyList.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Add a routing leg key to the list.
Definition at line 214 of file SegmentDate.hpp.
References _routingLegKeyList.
|
inlinevirtual |
Dump a Business Object into an output stream.
ostream& | the output stream. |
Implements stdair::BomAbstract.
Definition at line 233 of file SegmentDate.hpp.
References toString().
|
inlinevirtual |
Read a Business Object from an input stream.
istream& | the input stream. |
Implements stdair::BomAbstract.
Definition at line 242 of file SegmentDate.hpp.
|
virtual |
Get the serialised version of the Business Object.
Implements stdair::BomAbstract.
Definition at line 48 of file SegmentDate.cpp.
References describeKey().
Referenced by toStream().
|
inline |
Get a string describing the key.
Definition at line 253 of file SegmentDate.hpp.
References _key, and stdair::SegmentDateKey::toString().
Referenced by stdair::SegmentCabin::getFullerKey(), stdair::BomRetriever::retrieveFullKeyFromSegmentDate(), and toString().
void stdair::SegmentDate::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
|
friend |
Definition at line 37 of file SegmentDate.hpp.
|
friend |
Definition at line 38 of file SegmentDate.hpp.
|
friend |
Definition at line 39 of file SegmentDate.hpp.
|
friend |
Definition at line 40 of file SegmentDate.hpp.
|
protected |
Primary key (origin and destination).
Definition at line 307 of file SegmentDate.hpp.
Referenced by describeKey(), getBoardingPoint(), getKey(), getOffPoint(), and serialize().
|
protected |
Pointer on the parent class (FlightDate).
Definition at line 312 of file SegmentDate.hpp.
Referenced by getParent().
|
protected |
Map holding the children (SegmentCabin objects).
Definition at line 317 of file SegmentDate.hpp.
Referenced by getHolderMap().
|
protected |
Pointer on the operating SegmentDate. Nota:
Definition at line 325 of file SegmentDate.hpp.
Referenced by getOperatingSegmentDate().
|
protected |
List holding the marketing segment dates. Nota:
Definition at line 333 of file SegmentDate.hpp.
Referenced by getMarketingSegmentDateList().
|
protected |
Boarding date.
Definition at line 338 of file SegmentDate.hpp.
Referenced by getBoardingDate(), getDateOffset(), and setBoardingDate().
|
protected |
Boarding time.
Definition at line 343 of file SegmentDate.hpp.
Referenced by getBoardingTime(), getTimeOffset(), and setBoardingTime().
|
protected |
Landing date.
Definition at line 348 of file SegmentDate.hpp.
Referenced by getDateOffset(), getOffDate(), and setOffDate().
|
protected |
Landing time.
Definition at line 353 of file SegmentDate.hpp.
Referenced by getOffTime(), getTimeOffset(), and setOffTime().
|
protected |
Trip elapsed time.
Definition at line 358 of file SegmentDate.hpp.
Referenced by getElapsedTime(), getTimeOffset(), and setElapsedTime().
|
protected |
Trip distance.
Definition at line 363 of file SegmentDate.hpp.
Referenced by getDistance(), and setDistance().
|
protected |
List of routing leg keys.
Definition at line 368 of file SegmentDate.hpp.
Referenced by addLegKey(), and getLegKeyList().