vsl_pair_io.h
Go to the documentation of this file.
1 // This is core/vsl/vsl_pair_io.h
2 #ifndef vsl_pair_io_h_
3 #define vsl_pair_io_h_
4 //:
5 // \file
6 // \brief binary IO functions for std::pair<S, T>
7 // \author Ian Scott
8 
9 #include <iosfwd>
10 #include <utility>
11 #ifdef _MSC_VER
12 # include <vcl_msvc_warnings.h>
13 #endif
14 
15 class vsl_b_ostream;
16 class vsl_b_istream;
17 
18 //: Write pair to binary stream
19 template <class S, class T>
20 void vsl_b_write(vsl_b_ostream& s, const std::pair<S, T>& v);
21 
22 //: Read pair from binary stream
23 template <class S, class T>
24 void vsl_b_read(vsl_b_istream& s, std::pair<S, T>& v);
25 
26 //: Print human readable summary of object to a stream
27 template <class S, class T>
28 void vsl_print_summary(std::ostream & os,const std::pair<S, T> &v);
29 
30 #endif // vsl_pair_io_h_
A binary output adaptor for any std::ostream.
Definition: vsl_binary_io.h:37
void vsl_print_summary(std::ostream &os, const std::pair< S, T > &v)
Print human readable summary of object to a stream.
Definition: vsl_pair_io.hxx:38
void vsl_b_write(vsl_b_ostream &s, const std::pair< S, T > &v)
Write pair to binary stream.
Definition: vsl_pair_io.hxx:17
An adaptor for any std::istream to make it suitable for binary input.
void vsl_b_read(vsl_b_istream &s, std::pair< S, T > &v)
Read pair from binary stream.
Definition: vsl_pair_io.hxx:28