| 88 | } |
| 89 | |
| 90 | bool mitk::NodeSelectionService::SendSelection(const std::string& context, const std::vector<mitk::DataNode::Pointer>& selection) const |
| 91 | { |
| 92 | if (context.empty()) |
| 93 | return false; |
| 94 | |
| 95 | std::scoped_lock lock(m_Mutex); |
| 96 | |
| 97 | auto range = m_Listeners.equal_range(context); |
| 98 | |
| 99 | for (auto it = range.first; it != range.second; ++it) |
| 100 | it->second->OnSelectionReceived(context, selection); |
| 101 | |
| 102 | return true; |
| 103 | } |
no test coverage detected