#include <osmium/handler.hpp>
#include <memory>
#include <utility>
Go to the source code of this file.
|
namespace | osmium |
| Namespace for everything in the Osmium library.
|
|
namespace | osmium::handler |
| Osmium handlers provide callbacks for OSM objects.
|
|
◆ OSMIUM_DYNAMIC_HANDLER_DISPATCH
#define OSMIUM_DYNAMIC_HANDLER_DISPATCH |
( |
|
_name_, |
|
|
|
_type_ |
|
) |
| |
Value:template <typename THandler> \
auto _name_##_dispatch(THandler& handler, const osmium::_type_& object, int) -> decltype(handler._name_(object), void()) { \
handler._name_(object); \
} \
template <typename THandler> \
auto _name_##_dispatch(THandler& handler, const osmium::_type_& object, long) -> decltype(handler(object), void()) { \
handler(object); \
}