Mercurial > hg > orthanc
diff Core/DicomFormat/DicomArray.cpp @ 1737:ec66a16aa398
removal of DicomStringValue and DicomNullValue
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Oct 2015 07:52:24 +0200 |
parents | 6e7e5ed91c2d |
children | b1291df2f780 |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomArray.cpp Wed Oct 21 16:52:23 2015 +0200 +++ b/Core/DicomFormat/DicomArray.cpp Thu Oct 22 07:52:24 2015 +0200 @@ -63,7 +63,8 @@ for (size_t i = 0; i < elements_.size(); i++) { DicomTag t = elements_[i]->GetTag(); - std::string s = elements_[i]->GetValue().AsString(); + const DicomValue& v = elements_[i]->GetValue(); + std::string s = v.IsNull() ? "(null)" : v.GetContent(); printf("0x%04x 0x%04x [%s]\n", t.GetGroup(), t.GetElement(), s.c_str()); } }