Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
33 lines
1.3 KiB
C++
33 lines
1.3 KiB
C++
#pragma once
|
|
|
|
#include <mln/style/property_expression.hpp>
|
|
#include <mln/style/conversion/constant.hpp>
|
|
#include <mln/style/conversion.hpp>
|
|
#include <mln/style/expression/expression.hpp>
|
|
#include <mln/style/expression/value.hpp>
|
|
|
|
#include <optional>
|
|
|
|
namespace mln {
|
|
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 mln
|