8 #include <boost/archive/text_iarchive.hpp>
9 #include <boost/archive/text_oarchive.hpp>
10 #include <boost/serialization/access.hpp>
24 : _familyCode (iFareFamilyKey._familyCode) {
29 : _familyCode (iFamilyCode) {
38 ioOut <<
"FareFamilyKey: " <<
toString();
47 std::ostringstream oStr;
53 void FareFamilyKey::serialisationImplementationExport()
const {
54 std::ostringstream oStr;
55 boost::archive::text_oarchive oa (oStr);
60 void FareFamilyKey::serialisationImplementationImport() {
61 std::istringstream iStr;
62 boost::archive::text_iarchive ia (iStr);
67 template<
class Archive>
69 const unsigned int iFileVersion) {
74 ioArchive & _familyCode;
79 namespace ba = boost::archive;
80 template void FareFamilyKey::serialize<ba::text_oarchive> (ba::text_oarchive&,
82 template void FareFamilyKey::serialize<ba::text_iarchive> (ba::text_iarchive&,
const std::string toString() const
void toStream(std::ostream &ioOut) const
Handle on the StdAir library context.
Key of a given fare family, made of a fare family code.
const FamilyCode_T DEFAULT_FARE_FAMILY_CODE
void fromStream(std::istream &ioIn)
void serialize(Archive &ar, const unsigned int iFileVersion)