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

Method GetTagValueAsString

Modules/DICOM/src/mitkDICOMGDCMImageFrameInfo.cpp:41–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41mitk::DICOMDatasetFinding
42mitk::DICOMGDCMImageFrameInfo
43::GetTagValueAsString(const DICOMTag& tag) const
44{
45 const auto mappedValue = m_TagForValue.find( gdcm::Tag(tag.GetGroup(), tag.GetElement()) );
46 DICOMDatasetFinding result;
47
48 if (mappedValue != m_TagForValue.cend())
49 {
50 result.isValid = true;
51
52 if (mappedValue->second != nullptr)
53 {
54 std::string s(mappedValue->second);
55 try
56 {
57 result.value = s.erase(s.find_last_not_of(" \n\r\t")+1);
58 }
59 catch(...)
60 {
61 result.value = s;
62 }
63 }
64 else
65 {
66 result.value = "";
67 }
68 }
69
70 return result;
71}
72
73mitk::DICOMDatasetAccess::FindingsListType
74mitk::DICOMGDCMImageFrameInfo::GetTagValueAsString(const DICOMTagPath& path) const

Callers 15

DeepScanningMethod · 0.45
MultiFileScanningMethod · 0.45
SortMethod · 0.45
GetTagValueMethod · 0.45
GetTagValueMethod · 0.45
BuildGroupIDMethod · 0.45
StringCompareMethod · 0.45
NumericCompareMethod · 0.45
NumericDistanceMethod · 0.45
ExtractPathsOfInterestFunction · 0.45

Calls 6

IsExplicitMethod · 0.80
findMethod · 0.45
GetGroupMethod · 0.45
GetElementMethod · 0.45
eraseMethod · 0.45
SizeMethod · 0.45

Tested by 2

DeepScanningMethod · 0.36
MultiFileScanningMethod · 0.36