// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Tests // Copyright (c) 2014, Oracle and/or its affiliates. // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #ifndef BOOST_GEOMETRY_TEST_PRETTY_PRINT_GEOMETRY_HPP #define BOOST_GEOMETRY_TEST_PRETTY_PRINT_GEOMETRY_HPP #include #include #include #include #include template < typename Geometry, typename Tag = typename boost::geometry::tag::type > struct pretty_print_geometry { static inline std::ostream& apply(std::ostream& os, Geometry const& geometry) { os << boost::geometry::wkt(geometry); return os; } }; template struct pretty_print_geometry { static inline std::ostream& apply(std::ostream& os, Box const& box) { return os << "BOX" << boost::geometry::dsv(box); } }; template struct pretty_print_geometry { static inline std::ostream& apply(std::ostream& os, Segment const& segment) { return os << "SEGMENT" << boost::geometry::dsv(segment); } }; template struct pretty_print_geometry { static inline std::ostream& apply(std::ostream& os, Ring const& ring) { return os << "RING" << boost::geometry::dsv(ring); } }; #endif // BOOST_GEOMETRY_TEST_PRETTY_PRINT_GEOMETRY_HPP