Mantid
Loading...
Searching...
No Matches
QtJSONUtils.h
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
7#pragma once
8
9#include "DllOption.h"
10
11#include <QMap>
12#include <QString>
13#include <QVariant>
14#include <string>
15
16namespace MantidQt {
17namespace API {
18
19void EXPORT_OPT_MANTIDQT_COMMON saveJSONToFile(QString &filename, const QMap<QString, QVariant> &map);
20
21QMap<QString, QVariant> EXPORT_OPT_MANTIDQT_COMMON loadJSONFromFile(const QString &filename);
22
23QMap<QString, QVariant> EXPORT_OPT_MANTIDQT_COMMON loadJSONFromString(const QString &jsonString);
24
25} // namespace API
26} // namespace MantidQt
#define EXPORT_OPT_MANTIDQT_COMMON
Definition: DllOption.h:15
void EXPORT_OPT_MANTIDQT_COMMON saveJSONToFile(QString &filename, const QMap< QString, QVariant > &map)
Definition: QtJSONUtils.cpp:32
QMap< QString, QVariant > EXPORT_OPT_MANTIDQT_COMMON loadJSONFromString(const QString &jsonString)
Definition: QtJSONUtils.cpp:62
QMap< QString, QVariant > EXPORT_OPT_MANTIDQT_COMMON loadJSONFromFile(const QString &filename)
Definition: QtJSONUtils.cpp:43
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...