comparison 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
comparison
equal deleted inserted replaced
1736:b953c6eef28d 1737:ec66a16aa398
61 void DicomArray::Print(FILE* fp) const 61 void DicomArray::Print(FILE* fp) const
62 { 62 {
63 for (size_t i = 0; i < elements_.size(); i++) 63 for (size_t i = 0; i < elements_.size(); i++)
64 { 64 {
65 DicomTag t = elements_[i]->GetTag(); 65 DicomTag t = elements_[i]->GetTag();
66 std::string s = elements_[i]->GetValue().AsString(); 66 const DicomValue& v = elements_[i]->GetValue();
67 std::string s = v.IsNull() ? "(null)" : v.GetContent();
67 printf("0x%04x 0x%04x [%s]\n", t.GetGroup(), t.GetElement(), s.c_str()); 68 printf("0x%04x 0x%04x [%s]\n", t.GetGroup(), t.GetElement(), s.c_str());
68 } 69 }
69 } 70 }
70 } 71 }