2 #ifndef vgl_io_point_2d_hxx_ 3 #define vgl_io_point_2d_hxx_ 15 constexpr
short io_version_no = 1;
40 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_point_2d<T>&)\n" 41 <<
" Unknown version number "<<
v <<
'\n';
42 is.is().clear(std::ios::badbit);
53 os<<
'('<<p.
x()<<
','<<p.
y()<<
')';
56 #define VGL_IO_POINT_2D_INSTANTIATE(T) \ 57 template void vsl_print_summary(std::ostream &, const vgl_point_2d<T > &); \ 58 template void vsl_b_read(vsl_b_istream &, vgl_point_2d<T > &); \ 59 template void vsl_b_write(vsl_b_ostream &, const vgl_point_2d<T > &) 61 #endif // vgl_io_point_2d_hxx_
void vsl_b_write(vsl_b_ostream &os, const vgl_point_2d< T > &p)
Binary save self to stream.
void set(Type px, Type py)
Set x and y.
void vsl_print_summary(std::ostream &os, const vgl_point_2d< T > &p)
Output a human readable summary to the stream.
void vsl_b_read(vsl_b_istream &is, vgl_point_2d< T > &p)
Binary load self from stream.