8 #include <boost/archive/text_iarchive.hpp>
9 #include <boost/archive/text_oarchive.hpp>
10 #include <boost/serialization/access.hpp>
23 FareFamily::FareFamily (
const FareFamily& iFareFamily)
24 : _key (iFareFamily._key),
26 _frat5Curve (iFareFamily._frat5Curve),
27 _disutilityCurve (iFareFamily._disutilityCurve),
28 _meanStdDev (iFareFamily._meanStdDev) {
32 FareFamily::FareFamily (
const Key_T& iKey) : _key (iKey), _parent (NULL) {
41 std::ostringstream oStr;
47 void FareFamily::serialisationImplementationExport()
const {
48 std::ostringstream oStr;
49 boost::archive::text_oarchive oa (oStr);
54 void FareFamily::serialisationImplementationImport() {
55 std::istringstream iStr;
56 boost::archive::text_iarchive ia (iStr);
61 template<
class Archive>
63 const unsigned int iFileVersion) {
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
std::string toString() const
void serialize(Archive &ar, const unsigned int iFileVersion)
const std::string describeKey() const