summaryrefslogtreecommitdiff
path: root/src/mbgl/style/property_parsing.hpp
blob: c4547a9e1ebd5a9a6c5c9e1d0cd39401b96962fb (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&);

}

#endif