8 #include <boost/archive/text_iarchive.hpp>
9 #include <boost/archive/text_oarchive.hpp>
10 #include <boost/serialization/access.hpp>
23 SegmentCabinKey::SegmentCabinKey (
const CabinCode_T& iCabinCode)
24 : _cabinCode (iCabinCode) {
29 : _cabinCode (iKey._cabinCode) {
38 ioOut <<
"SegmentCabinKey: " <<
toString();
47 std::ostringstream oStr;
53 void SegmentCabinKey::serialisationImplementationExport()
const {
54 std::ostringstream oStr;
55 boost::archive::text_oarchive oa (oStr);
60 void SegmentCabinKey::serialisationImplementationImport() {
61 std::istringstream iStr;
62 boost::archive::text_iarchive ia (iStr);
67 template<
class Archive>
69 const unsigned int iFileVersion) {
74 ioArchive & _cabinCode;
79 namespace ba = boost::archive;
80 template void SegmentCabinKey::
81 serialize<ba::text_oarchive> (ba::text_oarchive&,
unsigned int);
82 template void SegmentCabinKey::
83 serialize<ba::text_iarchive> (ba::text_iarchive&,
unsigned int);
void serialize(Archive &ar, const unsigned int iFileVersion)
Handle on the StdAir library context.
void toStream(std::ostream &ioOut) const
Key of a given segment-cabin, made of a cabin code (only).
const std::string toString() const
const CabinCode_T DEFAULT_CABIN_CODE
void fromStream(std::istream &ioIn)