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 OriginDestinationSet::OriginDestinationSet()
20 : _key (stdair::DEFAULT_ORIGIN), _parent (NULL) {
25 OriginDestinationSet::OriginDestinationSet (
const OriginDestinationSet&)
26 : _key (stdair::DEFAULT_ORIGIN), _parent (NULL) {
31 OriginDestinationSet::OriginDestinationSet (
const Key_T& iKey)
32 : _key (iKey), _parent (NULL) {
41 std::ostringstream oStr;
47 void OriginDestinationSet::serialisationImplementationExport()
const {
48 std::ostringstream oStr;
49 boost::archive::text_oarchive oa (oStr);
54 void OriginDestinationSet::serialisationImplementationImport() {
55 std::istringstream iStr;
56 boost::archive::text_iarchive ia (iStr);
61 template<
class Archive>
63 const unsigned int iFileVersion) {
69 namespace ba = boost::archive;
71 void OriginDestinationSet::serialize<ba::text_oarchive> (ba::text_oarchive&,
74 void OriginDestinationSet::serialize<ba::text_iarchive> (ba::text_iarchive&,