45 #include "Serializers.hh"
50 std::ostream& serialize(std::ostream& _ostr,
const std::string& _rhs)
52 _ostr << _rhs.size() <<
":";
58 std::istream& deserialize(std::istream& _istr, std::string& _rhs)
65 std::vector<char> tmp(len);
66 _istr.read(&tmp[0] , len);
67 _rhs.assign(&tmp[0], len);
74 std::istream&
operator>>(std::istream& _istr, std::vector< bool >& _rhs)
79 for (
size_t i=0; i<size; i++)
std::istream & operator>>(std::istream &is, Matrix4x4T< Scalar > &m)
read the space-separated components of a vector from a stream */