XML write a vnl_vector Two functions which write a valid XML fragment to an ostream. More...
Go to the source code of this file.
Macros | |
| #define | VNL_XIO_VECTOR_INSTANTIATE(T) extern "Please #include <vnl/xio/vnl_xio_vector.hxx> first" |
Functions | |
| template<class T > | |
| void | x_write (std::ostream &os, vnl_vector< T > const &v, std::string name="vnl_vector") |
| XML save vnl_vector to stream. More... | |
| template<class T > | |
| void | x_write_tree (std::ostream &os, vnl_vector< T > const &v, std::string name="vnl_vector") |
| XML save vnl_vector as a 2-level tree to stream. More... | |
XML write a vnl_vector Two functions which write a valid XML fragment to an ostream.
The vector length is output as an attribute of the (top) node.
Modifications 29 July 2011 - Peter Vanroose - added documentation, tests, and x_write_tree()
Definition in file vnl_xio_vector.h.
| #define VNL_XIO_VECTOR_INSTANTIATE | ( | T | ) | extern "Please #include <vnl/xio/vnl_xio_vector.hxx> first" |
Definition at line 41 of file vnl_xio_vector.h.
| void x_write | ( | std::ostream & | os, |
| vnl_vector< T > const & | v, | ||
| std::string | name = "vnl_vector" |
||
| ) |
XML save vnl_vector to stream.
Definition at line 10 of file vnl_xio_vector.hxx.
| void x_write_tree | ( | std::ostream & | os, |
| vnl_vector< T > const & | v, | ||
| std::string | name = "vnl_vector" |
||
| ) |
XML save vnl_vector as a 2-level tree to stream.
Definition at line 21 of file vnl_xio_vector.hxx.
1.8.15