Mercurial > hg > orthanc
comparison OrthancServer/ToDcmtkBridge.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 |
---|---|
50 std::auto_ptr<DcmDataset> result(new DcmDataset); | 50 std::auto_ptr<DcmDataset> result(new DcmDataset); |
51 | 51 |
52 for (DicomMap::Map::const_iterator | 52 for (DicomMap::Map::const_iterator |
53 it = map.map_.begin(); it != map.map_.end(); ++it) | 53 it = map.map_.begin(); it != map.map_.end(); ++it) |
54 { | 54 { |
55 std::string s = it->second->AsString(); | 55 if (!it->second->IsNull()) |
56 DU_putStringDOElement(result.get(), Convert(it->first), s.c_str()); | 56 { |
57 std::string s = it->second->GetContent(); | |
58 DU_putStringDOElement(result.get(), Convert(it->first), s.c_str()); | |
59 } | |
57 } | 60 } |
58 | 61 |
59 return result.release(); | 62 return result.release(); |
60 } | 63 } |
61 } | 64 } |