Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1309:8f4487d8f79e | 1310:61ce8147f30d |
---|---|
189 | 189 |
190 return result.release(); | 190 return result.release(); |
191 } | 191 } |
192 | 192 |
193 | 193 |
194 void DicomMap::Assign(const DicomMap& other) | |
195 { | |
196 Clear(); | |
197 | |
198 for (Map::const_iterator it = other.map_.begin(); it != other.map_.end(); ++it) | |
199 { | |
200 map_.insert(std::make_pair(it->first, it->second->Clone())); | |
201 } | |
202 } | |
203 | |
204 | |
194 const DicomValue& DicomMap::GetValue(const DicomTag& tag) const | 205 const DicomValue& DicomMap::GetValue(const DicomTag& tag) const |
195 { | 206 { |
196 const DicomValue* value = TestAndGetValue(tag); | 207 const DicomValue* value = TestAndGetValue(tag); |
197 | 208 |
198 if (value) | 209 if (value) |