* @brief Initializes the list of datasets. */
| 72 | * @brief Initializes the list of datasets. |
| 73 | */ |
| 74 | void DatasetModel::initDatasets(const QMap<QString, QMap<QString, QMap<QString, QVector<QString>>>>& datasetMap) { |
| 75 | for (auto collection = datasetMap.begin(); collection != datasetMap.end(); ++collection) { |
| 76 | const QMap<QString, QMap<QString, QVector<QString>>> collection_ = collection.value(); |
| 77 | |
| 78 | for (auto category = collection_.begin(); category != collection_.end(); ++category) { |
| 79 | const QMap<QString, QVector<QString>> category_ = category.value(); |
| 80 | |
| 81 | for (auto subcategory = category_.begin(); subcategory != category_.end(); ++subcategory) { |
| 82 | m_datasets[collection.key()][category.key()][subcategory.key()] = subcategory.value().toList(); |
| 83 | m_allDatasets[category.key()][subcategory.key()].append(subcategory.value().toList()); |
| 84 | m_datasetList.append(subcategory.value().toList()); |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * @brief Returns the list of categories. |