summaryrefslogtreecommitdiff
path: root/src/mbgl/style/property_parsing.hpp
blob: d287468e79a0609b130790a211ae40f51a78181b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef MBGL_PROPERTY_PARSING
#define MBGL_PROPERTY_PARSING

#include <mbgl/style/types.hpp>

#include <mapbox/optional.hpp>
#include <rapidjson/document.h>

#include <functional>

namespace mbgl {

using JSVal = rapidjson::Value;

template <typename T>
using optional = mapbox::util::optional<T>;

template <typename T>
optional<T> parseProperty(const char* name, const JSVal&);

} // namespace mbgl

#endif