26 #ifndef SCRIBO_IO_XML_INTERNAL_PRINT_BOX_COORDS_HH
27 # define SCRIBO_IO_XML_INTERNAL_PRINT_BOX_COORDS_HH
34 # include <mln/core/alias/box2d.hh>
53 print_box_coords(std::ofstream& ostr,
const box2d& b,
57 # ifndef MLN_INCLUDE_ONLY
62 print_box_coords(std::ofstream& ostr,
const box2d& b,
65 std::string sc = space;
66 std::string sp = sc +
" ";
67 ostr << sc <<
"<Coords>" << std::endl
68 << sp <<
"<Point x=\"" << b.
pmin().
col()
69 <<
"\" y=\"" << b.
pmin().
row() <<
"\"/>"
71 << sp <<
"<Point x=\"" << b.
pmax().
col()
72 <<
"\" y=\"" << b.
pmin().
row() <<
"\"/>"
74 << sp <<
"<Point x=\"" << b.
pmax().
col()
75 <<
"\" y=\"" << b.
pmax().
row() <<
"\"/>"
77 << sp <<
"<Point x=\"" << b.
pmin().
col()
78 <<
"\" y=\"" << b.
pmax().
row() <<
"\"/>"
80 << sc <<
"</Coords>" << std::endl;
85 # endif // ! MLN_INCLUDE_ONLY
95 #endif // ! SCRIBO_IO_XML_INTERNAL_PRINT_BOX_COORDS_HH