1 #ifndef __STDAIR_BOM_SEGMENTDATE_HPP 2 #define __STDAIR_BOM_SEGMENTDATE_HPP 18 namespace serialization {
26 struct SegmentCabinKey;
37 template <
typename BOM>
friend class FacBom;
40 friend class boost::serialization::access;
70 return _key.getBoardingPoint();
77 return _key.getOffPoint();
133 return _offDate - _boardingDate;
150 return _operatingSegmentDate;
157 return _marketingSegmentDateList;
164 return _routingLegKeyList;
173 _boardingDate = iBoardingDate;
180 _boardingTime = iBoardingTime;
201 _elapsedTime = iElapsedTime;
208 _distance = iDistance;
215 _routingLegKeyList.push_back(iLegKey);
222 void linkWithOperating (
SegmentDate& iSegmentDate) {
223 _operatingSegmentDate = &iSegmentDate;
248 std::string toString()
const;
254 return _key.toString();
263 template<
class Archive>
264 void serialize (Archive& ar,
const unsigned int iFileVersion);
274 void serialisationImplementationExport()
const;
275 void serialisationImplementationImport();
289 #if BOOST_VERSION == 106300 376 #endif // __STDAIR_BOM_SEGMENTDATE_HPP unsigned long int Distance_T
void setElapsedTime(const Duration_T &iElapsedTime)
void setBoardingDate(const Date_T &iBoardingDate)
LocationCode_T AirportCode_T
const AirportCode_T & getBoardingPoint() const
Key of a given segment-date, made of an origin and a destination airports.
Base class for Factory layer.
Class representing the actual attributes for an airline segment-cabin.
std::map< const std::type_info *, BomAbstract * > HolderMap_T
const Duration_T & getOffTime() const
const std::string describeKey() const
SegmentDate * getOperatingSegmentDate() const
const HolderMap_T & getHolderMap() const
boost::gregorian::date Date_T
void setOffTime(const Duration_T &iOffTime)
std::list< std::string > RoutingLegKeyList_T
void setOffDate(const Date_T &iOffDate)
void addLegKey(const std::string &iLegKey)
void setDistance(const Distance_T &iDistance)
void setBoardingTime(const Duration_T &iBoardingTime)
const SegmentDateList_T & getMarketingSegmentDateList() const
const Date_T & getBoardingDate() const
const Key_T & getKey() const
RoutingLegKeyList_T _routingLegKeyList
SegmentDateList_T _marketingSegmentDateList
const AirportCode_T & getOffPoint() const
Handle on the StdAir library context.
const Distance_T & getDistance() const
Class representing the actual attributes for an airline segment-date.
Utility class for linking StdAir-based objects.
const Duration_T & getBoardingTime() const
const Duration_T & getElapsedTime() const
BomAbstract *const getParent() const
void fromStream(std::istream &ioIn)
boost::posix_time::time_duration Duration_T
const Date_T & getOffDate() const
Base class for the Business Object Model (BOM) layer.
boost::gregorian::date_duration DateOffset_T
const RoutingLegKeyList_T & getLegKeyList() const
void toStream(std::ostream &ioOut) const
std::list< SegmentDate * > SegmentDateList_T
Base class for Factory layer.
const DateOffset_T getDateOffset() const
SegmentDate * _operatingSegmentDate