* @brief Initiates processing the metadata file,, located at the given path, belonging to a dataset. * @param path the path to the metadata file */
| 50 | * @param path the path to the metadata file |
| 51 | */ |
| 52 | void DatasetHandler::processMetadata(const QJsonObject& object, const QString& description) { |
| 53 | delete m_object; |
| 54 | m_object = new QJsonObject(object); |
| 55 | DEBUG("Start processing dataset..."); |
| 56 | |
| 57 | if (!m_object->isEmpty()) { |
| 58 | configureFilter(); |
| 59 | configureSpreadsheet(description); |
| 60 | prepareForDataset(); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * @brief Marks the metadata file being invalid by setting the value of a flag, also pops up a messagebox. |