Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Toolbox/DicomStructureSet2.cpp @ 1837:f6eaf617d8e8
fix unused files
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Jun 2021 15:59:26 +0200 |
parents | 126522623e20 |
children | 3889ae96d2e9 |
comparison
equal
deleted
inserted
replaced
1836:5a6adbc20ace | 1837:f6eaf617d8e8 |
---|---|
81 std::stringstream tmp; | 81 std::stringstream tmp; |
82 for (size_t i = 0; i < dicomPath.GetPrefixLength(); ++i) | 82 for (size_t i = 0; i < dicomPath.GetPrefixLength(); ++i) |
83 { | 83 { |
84 Orthanc::DicomTag tag = dicomPath.GetPrefixTag(i); | 84 Orthanc::DicomTag tag = dicomPath.GetPrefixTag(i); |
85 | 85 |
86 // We use this other object to be able to use GetMainTagsName | 86 // We use this other object to be able to use Format |
87 // and Format | |
88 Orthanc::DicomTag tag2(tag.GetGroup(), tag.GetElement()); | 87 Orthanc::DicomTag tag2(tag.GetGroup(), tag.GetElement()); |
89 size_t index = dicomPath.GetPrefixIndex(i); | 88 size_t index = dicomPath.GetPrefixIndex(i); |
90 tmp << tag2.GetMainTagsName() << " (" << tag2.Format() << ") [" << index << "] / "; | 89 tmp << " (" << tag2.Format() << ") [" << index << "] / "; |
91 } | 90 } |
92 const Orthanc::DicomTag& tag = dicomPath.GetFinalTag(); | 91 const Orthanc::DicomTag& tag = dicomPath.GetFinalTag(); |
93 Orthanc::DicomTag tag2(tag.GetGroup(), tag.GetElement()); | 92 Orthanc::DicomTag tag2(tag.GetGroup(), tag.GetElement()); |
94 tmp << tag2.GetMainTagsName() << " (" << tag2.Format() << ")"; | 93 tmp << " (" << tag2.Format() << ")"; |
95 s = tmp.str(); | 94 s = tmp.str(); |
96 } | 95 } |
97 | 96 |
98 std::ostream& operator<<(std::ostream& s, const Orthanc::DicomPath& dicomPath) | 97 std::ostream& operator<<(std::ostream& s, const Orthanc::DicomPath& dicomPath) |
99 { | 98 { |