Key of a given segment-date, made of an origin and a destination airports. More...
#include <stdair/bom/SegmentDateKey.hpp>
Public Member Functions | |
SegmentDateKey (const AirportCode_T &, const AirportCode_T &) | |
SegmentDateKey (const SegmentDateKey &) | |
~SegmentDateKey () | |
const AirportCode_T & | getBoardingPoint () const |
const AirportCode_T & | getOffPoint () const |
void | toStream (std::ostream &ioOut) const |
void | fromStream (std::istream &ioIn) |
const std::string | toString () const |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int iFileVersion) |
Friends | |
class | boost::serialization::access |
Key of a given segment-date, made of an origin and a destination airports.
Definition at line 24 of file SegmentDateKey.hpp.
stdair::SegmentDateKey::SegmentDateKey | ( | const AirportCode_T & | iBoardingPoint, |
const AirportCode_T & | iOffPoint | ||
) |
Main constructor.
Definition at line 25 of file SegmentDateKey.cpp.
stdair::SegmentDateKey::SegmentDateKey | ( | const SegmentDateKey & | iKey | ) |
Copy constructor.
Definition at line 31 of file SegmentDateKey.cpp.
stdair::SegmentDateKey::~SegmentDateKey | ( | ) |
Destructor.
Definition at line 36 of file SegmentDateKey.cpp.
|
inline |
Get the boardinging point.
Definition at line 51 of file SegmentDateKey.hpp.
Referenced by stdair::SegmentDate::getBoardingPoint(), and stdair::OnDDateKey::getOrigin().
|
inline |
Get the arrival point.
Definition at line 56 of file SegmentDateKey.hpp.
Referenced by stdair::OnDDateKey::getDestination(), and stdair::SegmentDate::getOffPoint().
|
virtual |
Dump a Business Object Key into an output stream.
ostream& | the output stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 40 of file SegmentDateKey.cpp.
References toString().
|
virtual |
Read a Business Object Key from an input stream.
istream& | the input stream. |
Reimplemented from stdair::KeyAbstract.
Definition at line 45 of file SegmentDateKey.cpp.
|
virtual |
Get the serialised version of the Business Object Key.
That string is unique, at the level of a given Business Object, when among children of a given parent Business Object.
For instance, "H" and "K" allow to differentiate among two marketing classes for the same segment-date.
Reimplemented from stdair::KeyAbstract.
Definition at line 49 of file SegmentDateKey.cpp.
References stdair::DEFAULT_KEY_SUB_FLD_DELIMITER.
Referenced by stdair::SegmentDate::describeKey(), stdair::FlightDate::getSegmentDate(), stdair::BomRetriever::retrieveSegmentDateFromLongKey(), and toStream().
void stdair::SegmentDateKey::serialize | ( | Archive & | ar, |
const unsigned int | iFileVersion | ||
) |
Serialisation.
Definition at line 72 of file SegmentDateKey.cpp.
|
friend |
Definition at line 25 of file SegmentDateKey.hpp.