Chris@16: // Boost.Geometry (aka GGL, Generic Geometry Library) Chris@16: Chris@16: // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. Chris@16: // Copyright (c) 2008-2012 Bruno Lalande, Paris, France. Chris@16: // Copyright (c) 2009-2012 Mateusz Loskot, London, UK. Chris@16: Chris@16: // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library Chris@16: // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands. Chris@16: Chris@16: // Use, modification and distribution is subject to the Boost Software License, Chris@16: // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #ifndef BOOST_GEOMETRY_IO_WKT_STREAM_HPP Chris@16: #define BOOST_GEOMETRY_IO_WKT_STREAM_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: // This short file contains only one manipulator, streaming as WKT Chris@16: // Don't include this in any standard-included header file. Chris@16: Chris@16: // Don't use namespace boost::geometry, to enable the library to stream custom Chris@16: // geometries which are living outside the namespace boost::geometry Chris@16: Chris@101: // This is currently not documented on purpose: the Doxygen 2 QBK generator Chris@101: // should be updated w.r.t. << which in the end ruins the DocBook XML Chris@16: template Chris@16: inline std::basic_ostream& operator<< Chris@16: ( Chris@16: std::basic_ostream &os, Chris@16: Geometry const& geom Chris@16: ) Chris@16: { Chris@16: os << boost::geometry::wkt(geom); Chris@16: return os; Chris@16: } Chris@16: Chris@16: #endif // BOOST_GEOMETRY_IO_WKT_STREAM_HPP