comparison DEPENDENCIES/generic/include/boost/geometry/io/svg/write_svg_multi.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
3 // Copyright (c) 2009-2012 Barend Gehrels, Amsterdam, the Netherlands.
4
5 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
6 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
7
8 // Use, modification and distribution is subject to the Boost Software License,
9 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
10 // http://www.boost.org/LICENSE_1_0.txt)
11
12 #ifndef BOOST_GEOMETRY_IO_SVG_WRITE_SVG_MULTI_HPP
13 #define BOOST_GEOMETRY_IO_SVG_WRITE_SVG_MULTI_HPP
14
15
16 #include <boost/geometry/io/svg/write_svg.hpp>
17
18
19 namespace boost { namespace geometry
20 {
21
22 #ifndef DOXYGEN_NO_DETAIL
23 namespace detail { namespace svg
24 {
25
26
27 template <typename MultiGeometry, typename Policy>
28 struct svg_multi
29 {
30 template <typename Char, typename Traits>
31 static inline void apply(std::basic_ostream<Char, Traits>& os,
32 MultiGeometry const& multi, std::string const& style, int size)
33 {
34 for (typename boost::range_iterator<MultiGeometry const>::type
35 it = boost::begin(multi);
36 it != boost::end(multi);
37 ++it)
38 {
39 Policy::apply(os, *it, style, size);
40 }
41
42 }
43
44 };
45
46
47
48 }} // namespace detail::svg
49 #endif // DOXYGEN_NO_DETAIL
50
51
52 #ifndef DOXYGEN_NO_DISPATCH
53 namespace dispatch
54 {
55
56
57 template <typename MultiPolygon>
58 struct svg<multi_polygon_tag, MultiPolygon>
59 : detail::svg::svg_multi
60 <
61 MultiPolygon,
62 detail::svg::svg_poly
63 <
64 typename boost::range_value<MultiPolygon>::type
65 >
66
67 >
68 {};
69
70
71 } // namespace dispatch
72 #endif // DOXYGEN_NO_DISPATCH
73
74
75 }} // namespace boost::geometry
76
77
78 #endif // BOOST_GEOMETRY_IO_SVG_WRITE_SVG_MULTI_HPP