2 #ifndef vgl_io_homg_line_2d_hxx_ 3 #define vgl_io_homg_line_2d_hxx_ 9 #include <vsl/vsl_binary_io.h> 16 constexpr
short io_version_no = 1;
43 std::cerr <<
"I/O ERROR: vsl_b_read(vsl_b_istream&, vgl_homg_line_2d<T>&)\n" 44 <<
" Unknown version number "<<
v <<
'\n';
45 is.is().clear(std::ios::badbit);
56 os<<
"Homg_line: ( "<<
v.a()<<
"x + "<<
v.b()<<
"y + "<<
v.c()<<
"z = 0 )";
59 #define VGL_IO_HOMG_LINE_2D_INSTANTIATE(T) \ 60 template void vsl_print_summary(std::ostream &, const vgl_homg_line_2d<T >&); \ 61 template void vsl_b_read(vsl_b_istream &, vgl_homg_line_2d<T >&); \ 62 template void vsl_b_write(vsl_b_ostream &, const vgl_homg_line_2d<T >&) 64 #endif // vgl_io_homg_line_2d_hxx_ Represents a homogeneous 2D line.
contains functions vsl_b_write, vsl_b_read and vsl_print_summary
void vsl_b_read(vsl_b_istream &is, vgl_homg_line_2d< T > &v)
Binary load vgl_homg_line_2d from stream.
void vsl_print_summary(std::ostream &os, const vgl_homg_line_2d< T > &v)
Output a human readable summary of a vgl_homg_line_2d object to the stream.
void vsl_b_write(vsl_b_ostream &os, const vgl_homg_line_2d< T > &v)
Binary save vgl_homg_line_2d to stream.