| 85 | } |
| 86 | |
| 87 | std::string |
| 88 | mitk::DICOMTag |
| 89 | ::GetName() const |
| 90 | { |
| 91 | gdcm::Tag t(m_Group, m_Element); |
| 92 | |
| 93 | const gdcm::Global& g = gdcm::Global::GetInstance(); // sum of all knowledge ! |
| 94 | const gdcm::Dicts& dicts = g.GetDicts(); |
| 95 | const gdcm::Dict& pub = dicts.GetPublicDict(); // Part 6 |
| 96 | |
| 97 | const gdcm::DictEntry& entry = pub.GetDictEntry(t); |
| 98 | std::string name = entry.GetName(); |
| 99 | if (name.empty()) |
| 100 | { |
| 101 | name = "Unknown Tag"; |
| 102 | } |
| 103 | |
| 104 | return name; |
| 105 | } |
| 106 | |
| 107 | std::string |
| 108 | mitk::DICOMTag |