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

Function HasProperty

Modules/Multilabel/src/mitkDICOMSegmentationPropertyHelper.cpp:53–57  ·  view source on GitHub ↗

Presence (not non-emptiness) is the check. Type-2 DICOM tags may be intentionally empty; if Validate insisted on non-empty values, the "set to empty on purpose" pattern would be impossible to express and Complete would silently overwrite intentional emptiness with "UNKNOWN".

Source from the content-addressed store, hash-verified

51 // "set to empty on purpose" pattern would be impossible to express and
52 // Complete would silently overwrite intentional emptiness with "UNKNOWN".
53 bool HasProperty(const mitk::MultiLabelSegmentation* seg,
54 const std::string& key)
55 {
56 return seg->GetConstProperty(key).IsNotNull();
57 }
58
59 void AddSegmentationLevelMissing(std::vector<mitk::DICOMSegmentationPropertyHelper::MissingItem>& out,
60 const std::string& description)

Callers 1

ValidateMethod · 0.85

Calls 2

IsNotNullMethod · 0.80
GetConstPropertyMethod · 0.45

Tested by

no test coverage detected