| 44 | } |
| 45 | |
| 46 | void mitk::Annotation::SetUSProperty(const std::string &propertyKey, us::Any value) |
| 47 | { |
| 48 | if (this->m_ServiceRegistration) |
| 49 | { |
| 50 | us::ServiceProperties props; |
| 51 | std::vector<std::string> propertyKeys; |
| 52 | m_ServiceRegistration.GetReference().GetPropertyKeys(propertyKeys); |
| 53 | for (const std::string &key : propertyKeys) |
| 54 | { |
| 55 | props[key] = m_ServiceRegistration.GetReference().GetProperty(key); |
| 56 | } |
| 57 | props[propertyKey] = value; |
| 58 | m_ServiceRegistration.SetProperties(props); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | void mitk::Annotation::SetProperty(const std::string &propertyKey, const BaseProperty::Pointer &propertyValue) |
| 63 | { |
no test coverage detected