#ifndef __HEPNOS_TEST_OBJECTS_H #define __HEPNOS_TEST_OBJECTS_H #include #include class TestObjectA { friend class boost::serialization::access; public: int& x() { return _x; } double& y() { return _y; } bool operator==(const TestObjectA& other) const { return _x == other._x && _y == other._y; } private: int _x; double _y; template void serialize(Archive& ar, const unsigned int version) { ar & _x; ar & _y; } }; class TestObjectB { friend class boost::serialization::access; public: int& a() { return _a; } std::string& b() { return _b; } bool operator==(const TestObjectB& other) const { return _a == other._a && _b == other._b; } private: int _a; std::string _b; template void serialize(Archive& ar, const unsigned int version) { ar & _a; ar & _b; } }; #endif