| 155 | } |
| 156 | |
| 157 | std::shared_ptr<std::vector<LibraryObject>> |
| 158 | ModelManagerLocal::libraryModels(const QString& libraryName) |
| 159 | { |
| 160 | auto models = std::make_shared<std::vector<LibraryObject>>(); |
| 161 | |
| 162 | for (auto& it : *_modelMap) { |
| 163 | // This is needed to resolve cyclic dependencies |
| 164 | if (it.second->getLibrary()->isName(libraryName)) { |
| 165 | models->push_back( |
| 166 | LibraryObject(it.first, it.second->getDirectory(), it.second->getName())); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | return models; |
| 171 | } |
| 172 | |
| 173 | std::shared_ptr<Model> ModelManagerLocal::getModel(const QString& uuid) const |
| 174 | { |
nothing calls this directly
no test coverage detected