2 #ifndef vgl_io_vector_2d_hxx_ 3 #define vgl_io_vector_2d_hxx_ 15 constexpr
short io_version_no = 1;
40 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_vector_2d<T>&)\n" 41 <<
" Unknown version number "<<
v <<
'\n';
42 is.is().clear(std::ios::badbit);
53 os<<
'('<<
v.x()<<
','<<
v.y()<<
')';
56 #define VGL_IO_VECTOR_2D_INSTANTIATE(T) \ 57 template void vsl_print_summary(std::ostream &, const vgl_vector_2d<T > &); \ 58 template void vsl_b_read(vsl_b_istream &, vgl_vector_2d<T > &); \ 59 template void vsl_b_write(vsl_b_ostream &, const vgl_vector_2d<T > &) 61 #endif // vgl_io_vector_2d_hxx_ void vsl_b_read(vsl_b_istream &is, vgl_vector_2d< T > &v)
Binary load self from stream.
Direction vector in Euclidean 2D space, templated by type of element.
void vsl_print_summary(std::ostream &os, const vgl_vector_2d< T > &v)
Output a human readable summary to the stream.
void vsl_b_write(vsl_b_ostream &os, const vgl_vector_2d< T > &v)
Binary save self to stream.