2 #ifndef vsl_deque_io_hxx_ 3 #define vsl_deque_io_hxx_ 14 # include <vcl_msvc_warnings.h> 27 for (
unsigned i=0; i<v.size(); i++)
46 for (
unsigned i=0; i<deque_size; i++)
50 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, std::deque<T>&)\n" 51 <<
" Unknown version number "<< ver <<
'\n';
52 is.is().clear(std::ios::badbit);
62 os <<
"Deque length: " << v.size() <<
'\n';
63 for (
unsigned int i=0; i<v.size() && i<5; i++)
76 #define VSL_DEQUE_IO_INSTANTIATE(T) \ 77 template void vsl_print_summary(std::ostream&, const std::deque<T >&); \ 78 template void vsl_b_write(vsl_b_ostream& s, const std::deque<T >& v); \ 79 template void vsl_b_read(vsl_b_istream& s, std::deque<T >& v) 81 #endif // vsl_deque_io_hxx_ A binary output adaptor for any std::ostream.
unsigned short version_no() const
Return the version number of the IO format of the file being read.
std::istream & is() const
A reference to the adaptor's stream.
void vsl_b_write(vsl_b_ostream &s, const std::deque< T > &v)
Write deque to binary stream.
void vsl_b_read(vsl_b_istream &is, std::deque< T > &v)
Read deque from binary stream.
void vsl_indent_inc(std::ostream &os)
Increments current indent for given stream.
void vsl_print_summary(std::ostream &os, const std::deque< T > &v)
Output a human readable summary to the stream.
Put indents into output streams, to produce more legible printed output.
void vsl_indent_dec(std::ostream &os)
Decrements current indent for given stream.
binary IO functions for std::deque<T>
An adaptor for any std::istream to make it suitable for binary input.
Set of functions, and objects to perform binary IO.