Mercurial > hg > orthanc
diff Core/DicomFormat/DicomMap.cpp @ 1310:61ce8147f30d db-changes
custom database back-end
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 11 Feb 2015 10:40:08 +0100 |
parents | 6e7e5ed91c2d |
children | 0649c5aef34a |
line wrap: on
line diff
--- a/Core/DicomFormat/DicomMap.cpp Wed Feb 11 10:36:22 2015 +0100 +++ b/Core/DicomFormat/DicomMap.cpp Wed Feb 11 10:40:08 2015 +0100 @@ -191,6 +191,17 @@ } + void DicomMap::Assign(const DicomMap& other) + { + Clear(); + + for (Map::const_iterator it = other.map_.begin(); it != other.map_.end(); ++it) + { + map_.insert(std::make_pair(it->first, it->second->Clone())); + } + } + + const DicomValue& DicomMap::GetValue(const DicomTag& tag) const { const DicomValue* value = TestAndGetValue(tag);