2 #ifndef vsl_string_io_hxx_ 3 #define vsl_string_io_hxx_ 19 unsigned n = v.length();
44 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, std::basic_string<T>&)\n" 45 <<
" Unknown version number "<< ver <<
'\n';
46 is.is().clear(std::ios::badbit);
52 #define VSL_STRING_IO_INSTANTIATE(T) \ 53 template void vsl_b_write(vsl_b_ostream& s, const std::basic_string<T >& v); \ 54 template void vsl_b_read(vsl_b_istream& s, std::basic_string<T >& v) 56 #endif // vsl_string_io_hxx_ A binary output adaptor for any std::ostream.
void vsl_b_write(vsl_b_ostream &s, const std::basic_string< T > &v)
Write basic_string to binary stream.
unsigned short version_no() const
Return the version number of the IO format of the file being read.
void vsl_b_read(vsl_b_istream &is, std::basic_string< T > &v)
Read basic_string from binary stream.
std::istream & is() const
A reference to the adaptor's stream.
An adaptor for any std::istream to make it suitable for binary input.
binary IO functions for std::basic_string<T>
Set of functions, and objects to perform binary IO.