| 424 | } |
| 425 | |
| 426 | std::string ModelPackageImpl::setRootModel(const std::filesystem::path& path, const std::string& name, const std::string& author, const std::string& description) |
| 427 | { |
| 428 | if (m_manifest->hasKey(kModelPackageRootModelKey)) { |
| 429 | throw std::runtime_error("A root model already exists in this package"); |
| 430 | } |
| 431 | |
| 432 | auto identifier = addItem(path, name, author, description); |
| 433 | m_manifest->setString(kModelPackageRootModelKey, identifier); |
| 434 | return identifier; |
| 435 | } |
| 436 | |
| 437 | std::string ModelPackageImpl::replaceRootModel(const std::filesystem::path& path, const std::string& name, const std::string& author, const std::string& description) |
| 438 | { |
no test coverage detected