1 #ifndef __STDAIR_BOM_FLIGHTDATE_HPP 2 #define __STDAIR_BOM_FLIGHTDATE_HPP 18 namespace serialization {
28 struct SegmentDateKey;
36 template <
typename BOM>
friend class FacBom;
39 friend class boost::serialization::access;
63 return _key.getFlightNumber();
68 return _key.getDepartureDate();
97 LegDate* getLegDate (
const std::string& iLegDateKeyStr)
const;
121 SegmentDate* getSegmentDate (
const std::string& iSegmentDateKeyStr)
const;
157 std::string toString()
const;
163 return _key.toString();
172 template<
class Archive>
173 void serialize (Archive& ar,
const unsigned int iFileVersion);
183 void serialisationImplementationExport()
const;
184 void serialisationImplementationImport();
230 #endif // __STDAIR_BOM_FLIGHTDATE_HPP Handle on the StdAir library context.
const Date_T & getDepartureDate() const
Utility class for linking StdAir-based objects.
const HolderMap_T & getHolderMap() const
std::string AirlineCode_T
boost::gregorian::date Date_T
Class representing the actual attributes for an airline segment-date.
void toStream(std::ostream &ioOut) const
std::map< const std::type_info *, BomAbstract * > HolderMap_T
Base class for the Business Object Model (BOM) layer.
Base class for Factory layer.
unsigned short FlightNumber_T
const std::string describeKey() const
void fromStream(std::istream &ioIn)
Key of a given flight-date, made of a flight number and a departure date.
BomAbstract *const getParent() const
const Key_T & getKey() 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 flight-date.
const FlightNumber_T & getFlightNumber() const