summaryrefslogtreecommitdiff
path: root/platform/android/src/style/conversion/types.hpp
diff options
context:
space:
mode:
authorWilhelm Berg <wb@BergWerk-GIS.at>2018-08-22 16:56:32 +0200
committerWilhelm Berg <wb@BergWerk-GIS.at>2018-08-22 16:56:32 +0200
commit797f622a26b34db5a30e7f1728d87c6700a2ec1e (patch)
tree75ea93979db2baf3eb2234c6fbb3d1a9c5b70329 /platform/android/src/style/conversion/types.hpp
parent86fc3f525e42d042f239876b93525ff411ad7182 (diff)
parent520df7f02049cdbbb9e68041e755d6c3a8d5b21f (diff)
downloadqtlocation-mapboxgl-797f622a26b34db5a30e7f1728d87c6700a2ec1e.tar.gz
Merge branch 'master' of github.com:mapbox/mapbox-gl-native into bwg-vs2017
Diffstat (limited to 'platform/android/src/style/conversion/types.hpp')
-rw-r--r--platform/android/src/style/conversion/types.hpp119
1 files changed, 0 insertions, 119 deletions
diff --git a/platform/android/src/style/conversion/types.hpp b/platform/android/src/style/conversion/types.hpp
deleted file mode 100644
index e87782fad0..0000000000
--- a/platform/android/src/style/conversion/types.hpp
+++ /dev/null
@@ -1,119 +0,0 @@
-// This file is generated. Edit android/platform/scripts/generate-style-code.js, then run `make android-style-code`.
-#pragma once
-
-#include "types_string_values.hpp"
-#include "../../conversion/conversion.hpp"
-#include "../../conversion/constant.hpp"
-
-#include <mbgl/style/types.hpp>
-#include <mbgl/util/optional.hpp>
-#include <jni/jni.hpp>
-
-#include <string>
-
-namespace mbgl {
-namespace android {
-namespace conversion {
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::VisibilityType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::VisibilityType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::LineCapType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::LineCapType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::LineJoinType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::LineJoinType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::SymbolPlacementType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::SymbolPlacementType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::AlignmentType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::AlignmentType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::IconTextFitType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::IconTextFitType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::SymbolAnchorType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::SymbolAnchorType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::TextJustifyType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::TextJustifyType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::TextTransformType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::TextTransformType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::TranslateAnchorType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::TranslateAnchorType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::CirclePitchScaleType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::CirclePitchScaleType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::RasterResamplingType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::RasterResamplingType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::HillshadeIlluminationAnchorType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::HillshadeIlluminationAnchorType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-template <>
-struct Converter<jni::jobject*, mbgl::style::LightAnchorType> {
- Result<jni::jobject*> operator()(jni::JNIEnv& env, const mbgl::style::LightAnchorType& value) const {
- return convert<jni::jobject*, std::string>(env, toString(value));
- }
-};
-
-
-} // namespace conversion
-} // namespace android
-} // namespace mbgl