2 #ifndef vgl_io_homg_point_1d_hxx_ 3 #define vgl_io_homg_point_1d_hxx_ 17 constexpr
short io_version_no = 1;
42 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_homg_point_1d<T>&)\n" 43 <<
" Unknown version number "<<
v <<
'\n';
44 is.is().clear(std::ios::badbit);
55 os<<
'('<<p.
x()<<
','<<p.
w()<<
')';
58 #define VGL_IO_HOMG_POINT_1D_INSTANTIATE(T) \ 59 template void vsl_print_summary(std::ostream&, vgl_homg_point_1d<T > const&); \ 60 template void vsl_b_read(vsl_b_istream&, vgl_homg_point_1d<T > &); \ 61 template void vsl_b_write(vsl_b_ostream&, vgl_homg_point_1d<T > const&) 63 #endif // vgl_io_homg_point_1d_hxx_
void vsl_b_read(vsl_b_istream &is, vgl_homg_point_1d< T > &p)
Binary load self from stream.
void vsl_b_write(vsl_b_ostream &os, vgl_homg_point_1d< T > const &p)
Binary save self to stream.
void set(T px, T pw)
Set x,w.
void vsl_print_summary(std::ostream &os, vgl_homg_point_1d< T > const &p)
Output a human readable summary to the stream.
Represents a homogeneous 1-D point, i.e., a homogeneous pair (x,w).