00001 // This is core/vgl/xio/vgl_xio_point_2d.txx 00002 #ifndef vgl_xio_point_2d_txx_ 00003 #define vgl_xio_point_2d_txx_ 00004 //: 00005 // \file 00006 00007 #include "vgl_xio_point_2d.h" 00008 #include <vsl/vsl_basic_xml_element.h> 00009 00010 //============================================================================ 00011 //: Binary save self to stream. 00012 template<class T> 00013 void x_write(vcl_ostream &os, const vgl_point_2d<T> & v, vcl_string name) 00014 { 00015 vsl_basic_xml_element element(name); 00016 element.add_attribute("x", v.x()); 00017 element.add_attribute("y", v.y()); 00018 element.x_write(os); 00019 } 00020 00021 #define VGL_XIO_POINT_2D_INSTANTIATE(T) \ 00022 template void x_write(vcl_ostream &, const vgl_point_2d<T > &, vcl_string) 00023 00024 #endif // vgl_xio_point_2d_txx_
1.5.1