##// END OF EJS Templates
Updates format of AMDA json and uses it in Sciqlop...
Updates format of AMDA json and uses it in Sciqlop This new format: - adds a data used to determinate if we expect to retrieve a vector or a scalar (for parameters and components) - duplicates useful data (unit, mission name) directly in parameters and components

File last commit:

r354:b3b541ccaa5a
r522:328e3d1c7289
Show More
AmdaParser.h
23 lines | 581 B | text/x-c | CLexer
#ifndef SCIQLOP_AMDAPARSER_H
#define SCIQLOP_AMDAPARSER_H
#include "AmdaGlobal.h"
#include <QLoggingCategory>
#include <memory>
Q_DECLARE_LOGGING_CATEGORY(LOG_AmdaParser)
class DataSourceItem;
struct SCIQLOP_AMDA_EXPORT AmdaParser {
/**
* Creates a data source tree from a JSON file
* @param filePath the path of the JSON file to read
* @return the root of the created data source tree, nullptr if the file couldn't be parsed
*/
static std::unique_ptr<DataSourceItem> readJson(const QString &filePath) noexcept;
};
#endif // SCIQLOP_AMDAPARSER_H