vsl_string_io.h
Go to the documentation of this file.
1 // This is core/vsl/vsl_string_io.h
2 #ifndef vsl_string_io_h_
3 #define vsl_string_io_h_
4 //:
5 // \file
6 // \brief binary IO functions for std::basic_string<T>
7 // \author K.Y.McGaul
8 
9 #include <string>
10 #ifdef _MSC_VER
11 # include <vcl_msvc_warnings.h>
12 #endif
13 class vsl_b_ostream;
14 class vsl_b_istream;
15 
16 //: Write string to binary stream
17 template <class T>
18 void vsl_b_write(vsl_b_ostream& s, const std::basic_string<T>& v);
19 
20 //: Read string from binary stream
21 template <class T>
22 void vsl_b_read(vsl_b_istream& s, std::basic_string<T>& v);
23 
24 #endif // vsl_string_io_h_
A binary output adaptor for any std::ostream.
Definition: vsl_binary_io.h:37
void vsl_b_read(vsl_b_istream &s, std::basic_string< T > &v)
Read string from binary stream.
An adaptor for any std::istream to make it suitable for binary input.
void vsl_b_write(vsl_b_ostream &s, const std::basic_string< T > &v)
Write string to binary stream.