diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2018-10-16 11:21:27 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2018-10-29 10:47:51 +0000 |
commit | e65f8d9783de9b0f24719c8299bc69382c6e9a67 (patch) | |
tree | bea6f02a94978bb76aa685a565726ad3fc517870 /src/ivicore/qiviqmlconversion_helper.h | |
parent | 3c44b7c2e68bb8df12e7317c3e094732019cba2b (diff) |
Add a way to load and parse the data to the QIviSimulationEngine
The new loadSimulationData() function can load a JSON file and store
it's content in the IviSimulator singelton.
The IviSimulator singleton provides functions to interpret the JSON
values and other helpers e.g. checking for min/max/domain values.
Task-number: AUTOSUITE-629
Change-Id: I2832cc0b29379144845a8ed295fc2d988273ff0c
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'src/ivicore/qiviqmlconversion_helper.h')
-rw-r--r-- | src/ivicore/qiviqmlconversion_helper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ivicore/qiviqmlconversion_helper.h b/src/ivicore/qiviqmlconversion_helper.h index d6685ee..2c30772 100644 --- a/src/ivicore/qiviqmlconversion_helper.h +++ b/src/ivicore/qiviqmlconversion_helper.h @@ -54,6 +54,8 @@ QT_BEGIN_NAMESPACE Q_QTIVICORE_EXPORT void qtivi_qmlOrCppWarning(const QObject *obj, const char *errorString); Q_QTIVICORE_EXPORT void qtivi_qmlOrCppWarning(const QObject *obj, const QString& errorString); +Q_QTIVICORE_EXPORT QVariant convertFromJSON(const QVariant &val); + template <typename T> QVariant qtivi_convertValue(const T &val) { QVariant var; |