10#include <FMEThirdPartyWarningsDisable.h>
12#include <FMEThirdPartyWarningsRestore.h>
19 template <
class ValueType >
23 for (
size_t i = 0; i < TImageVector< ValueType >::NumberOfDimensions; ++i )
30 template <
class ValueType,
size_t N,
class DC >
34 for (
size_t i = 0; i <
N; ++i )
46 template <
class ValueType >
49 QVariant qvar = QVariant::fromValue( v );
55 QString qstr = QString::fromUtf8( v );
61 QString qstr = QString::fromStdString( v );
65 template <
class Iterable >
69 for (
const auto& v: iterable )
90 template <
class ValueType,
size_t N >
96 template <
class ValueType >
97 QVariantList
ToQVariant(
const std::vector< ValueType >& vec )
107 inline QVariant
ToQVariant(
const std::string& x ) {
return { QString::fromStdString( x ) }; }
108 inline QVariant
ToQVariant(
const char* x ) {
return { x }; }
UINT64 MLuint64
Introduce platform-independent 64-bit unsigned integer type.
INT64 MLint64
Include 64-bit integer support for Windows or Unix.
QVariantList ToQVariantList(const TImageVector< ValueType > &vec)
QVariantList FloatVectorToQVariantList(const FloatingPointVector< ValueType, N, DC > &vec)
QVariantList IterableToQVariantList(const Iterable &iterable)
void AppendToQVariantList(QVariantList &result, const ValueType &v)
QVariantList ToQVariant(const ImageVector &vec)
TSubImageBox< MLint > SubImageBox
Defines the standard SubImageBox type used in the ML. Its size varies with the size of the MLint type...
TImageVector< MLint > ImageVector
Defines the standard ImageVector type that is used by the ML for indexing and coordinates.