44 #ifndef SERIALIZERS_HH 45 #define SERIALIZERS_HH 59 template <
typename ValueT>
60 std::ostream& serialize(std::ostream& os,
const ValueT& rhs);
62 std::ostream& serialize(std::ostream& os,
const std::string& rhs);
64 template <
typename ValueT>
65 std::istream& deserialize(std::istream& is, ValueT& rhs);
67 std::istream& deserialize(std::istream& is, std::string& rhs);
69 template <
typename KeyT,
typename ValueT>
70 std::ostream& operator<<(std::ostream& os, const std::map< KeyT, ValueT >& rhs);
72 template <
typename KeyT,
typename ValueT>
73 std::istream&
operator>>(std::istream& is, std::map< KeyT, ValueT >& rhs);
75 template <
typename ValueT>
76 std::ostream& operator<<(std::ostream& os, const std::vector< ValueT >& rhs);
78 template <
typename ValueT>
79 std::istream&
operator>>(std::istream& is, std::vector< ValueT >& rhs);
81 std::istream&
operator>>(std::istream& is, std::vector< bool >& rhs);
85 #if defined(INCLUDE_TEMPLATES) && !defined(SERIALIZERST_CC) 86 #include "SerializersT.cc" 89 #endif // SERIALIZERS_HH
std::istream & operator>>(std::istream &is, Matrix4x4T< Scalar > &m)
read the space-separated components of a vector from a stream */