| 334 | } |
| 335 | |
| 336 | void ModelPackageImpl::removeItemInfoEntry(const std::string& identifier) |
| 337 | { |
| 338 | auto itemInfoEntries = getItemInfoEntries(); |
| 339 | |
| 340 | std::vector<std::string> identifiers; |
| 341 | itemInfoEntries->getKeys(identifiers); |
| 342 | |
| 343 | auto newItemInfoEntries = std::make_unique<JsonMap>(); |
| 344 | for (const auto& localIdentifier : identifiers) { |
| 345 | if (localIdentifier != identifier) { |
| 346 | newItemInfoEntries->setObject(localIdentifier, itemInfoEntries->getObject(localIdentifier)); |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | m_manifest->setObject(kModelPackageItemInfoEntriesKey, std::move(newItemInfoEntries)); |
| 351 | } |
| 352 | |
| 353 | void ModelPackageImpl::createItemInfoEntry(const std::string& identifier, const std::string& path, const std::string& name, const std::string& author, const std::string& description) { |
| 354 | auto itemInfoEntry = getItemInfoEntry(identifier); |