8 #include <boost/archive/text_iarchive.hpp>
9 #include <boost/archive/text_oarchive.hpp>
10 #include <boost/serialization/access.hpp>
12 #include <stdair/basic/BasConst_Inventory.hpp>
19 OriginDestinationSetKey::OriginDestinationSetKey()
20 : _destination (stdair::DEFAULT_DESTINATION) {
25 OriginDestinationSetKey::
26 OriginDestinationSetKey (
const stdair::AirportCode_T& iDestination)
27 : _destination (iDestination) {
31 OriginDestinationSetKey::
33 : _destination (iKey._destination) {
42 ioOut <<
"OriginDestinationSetKey: " <<
toString() << std::endl;
51 std::ostringstream oStr;
57 void OriginDestinationSetKey::serialisationImplementationExport()
const {
58 std::ostringstream oStr;
59 boost::archive::text_oarchive oa (oStr);
64 void OriginDestinationSetKey::serialisationImplementationImport() {
65 std::istringstream iStr;
66 boost::archive::text_iarchive ia (iStr);
71 template<
class Archive>
73 const unsigned int iFileVersion) {
78 ioArchive & _destination;
83 namespace ba = boost::archive;
85 void OriginDestinationSetKey::serialize<ba::text_oarchive> (ba::text_oarchive&,
88 void OriginDestinationSetKey::serialize<ba::text_iarchive> (ba::text_iarchive&,