| 256 | } |
| 257 | |
| 258 | DataStorageReference DataStorageService::FindStorageByLabel(const std::string& label) const |
| 259 | { |
| 260 | // Note: caller must hold m_Mutex |
| 261 | for (const auto& info : m_Storages) |
| 262 | { |
| 263 | if (info.GetLabel() == label) |
| 264 | { |
| 265 | return info; |
| 266 | } |
| 267 | } |
| 268 | return DataStorageReference(); |
| 269 | } |
| 270 | |
| 271 | } // namespace mitk |
no test coverage detected