33 lines
1.4 KiB
C++
33 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <mbgl/style/property_expression.hpp>
|
|
#include <mbgl/style/conversion/constant.hpp>
|
|
#include <mbgl/style/conversion.hpp>
|
|
#include <mbgl/style/expression/expression.hpp>
|
|
#include <mbgl/style/expression/value.hpp>
|
|
|
|
#include <optional>
|
|
|
|
namespace mbgl {
|
|
namespace style {
|
|
namespace conversion {
|
|
|
|
bool hasTokens(const std::string&);
|
|
std::unique_ptr<expression::Expression> convertTokenStringToFormatExpression(const std::string&);
|
|
std::unique_ptr<expression::Expression> convertTokenStringToImageExpression(const std::string&);
|
|
std::unique_ptr<expression::Expression> convertTokenStringToExpression(const std::string&);
|
|
|
|
std::optional<std::unique_ptr<expression::Expression>> convertFunctionToExpression(expression::type::Type,
|
|
const Convertible&,
|
|
Error&,
|
|
bool convertTokens);
|
|
|
|
template <class T>
|
|
std::optional<PropertyExpression<T>> convertFunctionToExpression(const Convertible& value,
|
|
Error& error,
|
|
bool convertTokens);
|
|
|
|
} // namespace conversion
|
|
} // namespace style
|
|
} // namespace mbgl
|