prefix.hpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
  5. // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
  6. // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
  7. // Use, modification and distribution is subject to the Boost Software License,
  8. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_GEOMETRY_MULTI_IO_WKT_DETAIL_PREFIX_HPP
  11. #define BOOST_GEOMETRY_MULTI_IO_WKT_DETAIL_PREFIX_HPP
  12. #include <boost/geometry/multi/core/tags.hpp>
  13. namespace boost { namespace geometry
  14. {
  15. #ifndef DOXYGEN_NO_DETAIL
  16. namespace detail { namespace wkt
  17. {
  18. struct prefix_null
  19. {
  20. static inline const char* apply() { return ""; }
  21. };
  22. struct prefix_multipoint
  23. {
  24. static inline const char* apply() { return "MULTIPOINT"; }
  25. };
  26. struct prefix_multilinestring
  27. {
  28. static inline const char* apply() { return "MULTILINESTRING"; }
  29. };
  30. struct prefix_multipolygon
  31. {
  32. static inline const char* apply() { return "MULTIPOLYGON"; }
  33. };
  34. }} // namespace wkt::impl
  35. #endif
  36. }} // namespace boost::geometry
  37. #endif // BOOST_GEOMETRY_MULTI_IO_WKT_DETAIL_PREFIX_HPP