8 #include <boost/archive/text_iarchive.hpp>
9 #include <boost/archive/text_oarchive.hpp>
10 #include <boost/serialization/access.hpp>
19 SegmentDateKey::SegmentDateKey()
27 : _boardingPoint (iBoardingPoint), _offPoint (iOffPoint) {
32 : _boardingPoint (iKey._boardingPoint), _offPoint (iKey._offPoint) {
41 ioOut <<
"SegmentDateKey: " <<
toString() << std::endl;
50 std::ostringstream oStr;
51 oStr << _boardingPoint
57 void SegmentDateKey::serialisationImplementationExport()
const {
58 std::ostringstream oStr;
59 boost::archive::text_oarchive oa (oStr);
64 void SegmentDateKey::serialisationImplementationImport() {
65 std::istringstream iStr;
66 boost::archive::text_iarchive ia (iStr);
71 template<
class Archive>
73 const unsigned int iFileVersion) {
74 ioArchive & _boardingPoint & _offPoint;
79 namespace ba = boost::archive;
80 template void SegmentDateKey::serialize<ba::text_oarchive>(ba::text_oarchive&,
82 template void SegmentDateKey::serialize<ba::text_iarchive>(ba::text_iarchive&,
void serialize(Archive &ar, const unsigned int iFileVersion)
const std::string DEFAULT_KEY_SUB_FLD_DELIMITER
LocationCode_T AirportCode_T
const std::string toString() const
const AirportCode_T DEFAULT_ORIGIN
Handle on the StdAir library context.
const AirportCode_T DEFAULT_DESTINATION
void fromStream(std::istream &ioIn)
void toStream(std::ostream &ioOut) const
Key of a given segment-date, made of an origin and a destination airports.