comparison Core/DicomParsing/FromDcmtkBridge.cpp @ 3651:46cb00e4adbb

DicomMap::DumpMainDicomTags() and DicomMap::ParseMainDicomTags()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Feb 2020 13:22:02 +0100
parents 94f4a18a79cc
children 4922bdd046dd
comparison
equal deleted inserted replaced
3650:e5811a9f8df0 3651:46cb00e4adbb
466 for (unsigned long i = 0; i < dataset.card(); i++) 466 for (unsigned long i = 0; i < dataset.card(); i++)
467 { 467 {
468 DcmElement* element = dataset.getElement(i); 468 DcmElement* element = dataset.getElement(i);
469 if (element && element->isLeaf()) 469 if (element && element->isLeaf())
470 { 470 {
471 target.SetValue(element->getTag().getGTag(), 471 target.SetValueInternal(element->getTag().getGTag(),
472 element->getTag().getETag(), 472 element->getTag().getETag(),
473 ConvertLeafElement(*element, DicomToJsonFlags_Default, 473 ConvertLeafElement(*element, DicomToJsonFlags_Default,
474 maxStringLength, encoding, hasCodeExtensions, ignoreTagLength)); 474 maxStringLength, encoding, hasCodeExtensions, ignoreTagLength));
475 } 475 }
476 } 476 }
477 } 477 }
478 478
479 479
1115 throw OrthancException(ErrorCode_BadParameterType); 1115 throw OrthancException(ErrorCode_BadParameterType);
1116 } 1116 }
1117 1117
1118 result.clear(); 1118 result.clear();
1119 1119
1120 for (DicomMap::Map::const_iterator 1120 for (DicomMap::Content::const_iterator
1121 it = values.map_.begin(); it != values.map_.end(); ++it) 1121 it = values.content_.begin(); it != values.content_.end(); ++it)
1122 { 1122 {
1123 // TODO Inject PrivateCreator if some is available in the DicomMap? 1123 // TODO Inject PrivateCreator if some is available in the DicomMap?
1124 const std::string tagName = GetTagName(it->first, ""); 1124 const std::string tagName = GetTagName(it->first, "");
1125 1125
1126 if (simplify) 1126 if (simplify)