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) {
31 SegmentDateKey::SegmentDateKey (
const SegmentDateKey& iKey)
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;
Handle on the StdAir library context.
const std::string DEFAULT_KEY_SUB_FLD_DELIMITER
const AirportCode_T DEFAULT_DESTINATION
const AirportCode_T DEFAULT_ORIGIN
LocationCode_T AirportCode_T
void fromStream(std::istream &ioIn)
void toStream(std::ostream &ioOut) const
const std::string toString() const
void serialize(Archive &ar, const unsigned int iFileVersion)