MCPcopy Create free account
hub / github.com/MITK/MITK / GetRelationUID

Method GetRelationUID

Modules/Core/src/DataManagement/mitkPropertyRelationRuleBase.cpp:318–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318mitk::PropertyRelationRuleBase::RelationUIDType
319mitk::PropertyRelationRuleBase::GetRelationUID(const IPropertyProvider *source, const IPropertyProvider *destination) const
320{
321 auto result = this->GetRelationUIDs(source, destination);
322
323 if (result.empty())
324 {
325 mitkThrowException(NoPropertyRelationException);
326 }
327 else if(result.size()>1)
328 {
329 mitkThrow() << "Cannot return one(!) relation UID. Multiple relations exists for given rule, source and destination.";
330 }
331
332 return result[0];
333}
334
335mitk::PropertyRelationRuleBase::InstanceIDType mitk::PropertyRelationRuleBase::NULL_INSTANCE_ID()
336{

Callers

nothing calls this directly

Calls 3

GetRelationUIDsMethod · 0.95
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected