Chris@16
|
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
|
Chris@16
|
2
|
Chris@16
|
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
Chris@16
|
4 // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
Chris@16
|
5 // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
Chris@16
|
6
|
Chris@16
|
7 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
Chris@16
|
8 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
Chris@16
|
9
|
Chris@16
|
10 // Use, modification and distribution is subject to the Boost Software License,
|
Chris@16
|
11 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
12 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
13
|
Chris@16
|
14 #ifndef BOOST_GEOMETRY_IO_WKT_DETAIL_PREFIX_HPP
|
Chris@16
|
15 #define BOOST_GEOMETRY_IO_WKT_DETAIL_PREFIX_HPP
|
Chris@16
|
16
|
Chris@16
|
17 namespace boost { namespace geometry
|
Chris@16
|
18 {
|
Chris@16
|
19
|
Chris@101
|
20
|
Chris@16
|
21 #ifndef DOXYGEN_NO_DETAIL
|
Chris@16
|
22 namespace detail { namespace wkt
|
Chris@16
|
23 {
|
Chris@16
|
24
|
Chris@101
|
25 struct prefix_null
|
Chris@101
|
26 {
|
Chris@101
|
27 static inline const char* apply() { return ""; }
|
Chris@101
|
28 };
|
Chris@101
|
29
|
Chris@16
|
30 struct prefix_point
|
Chris@16
|
31 {
|
Chris@16
|
32 static inline const char* apply() { return "POINT"; }
|
Chris@16
|
33 };
|
Chris@16
|
34
|
Chris@16
|
35 struct prefix_polygon
|
Chris@16
|
36 {
|
Chris@16
|
37 static inline const char* apply() { return "POLYGON"; }
|
Chris@16
|
38 };
|
Chris@16
|
39
|
Chris@16
|
40 struct prefix_linestring
|
Chris@16
|
41 {
|
Chris@16
|
42 static inline const char* apply() { return "LINESTRING"; }
|
Chris@16
|
43 };
|
Chris@16
|
44
|
Chris@101
|
45 struct prefix_multipoint
|
Chris@101
|
46 {
|
Chris@101
|
47 static inline const char* apply() { return "MULTIPOINT"; }
|
Chris@101
|
48 };
|
Chris@101
|
49
|
Chris@101
|
50 struct prefix_multilinestring
|
Chris@101
|
51 {
|
Chris@101
|
52 static inline const char* apply() { return "MULTILINESTRING"; }
|
Chris@101
|
53 };
|
Chris@101
|
54
|
Chris@101
|
55 struct prefix_multipolygon
|
Chris@101
|
56 {
|
Chris@101
|
57 static inline const char* apply() { return "MULTIPOLYGON"; }
|
Chris@101
|
58 };
|
Chris@101
|
59
|
Chris@16
|
60 }} // namespace wkt::impl
|
Chris@16
|
61 #endif
|
Chris@16
|
62
|
Chris@16
|
63
|
Chris@16
|
64 }} // namespace boost::geometry
|
Chris@16
|
65
|
Chris@16
|
66 #endif // BOOST_GEOMETRY_IO_WKT_DETAIL_PREFIX_HPP
|