comparison Core/DicomParsing/FromDcmtkBridge.cpp @ 3692:fd302ec6a502

fix for ubuntu 16.04
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Feb 2020 22:32:07 +0100
parents 4922bdd046dd
children bc25deb40302
comparison
equal deleted inserted replaced
3691:4922bdd046dd 3692:fd302ec6a502
1386 // changes VR from LO to UN) 1386 // changes VR from LO to UN)
1387 // https://bitbucket.org/sjodogne/orthanc/issues/140 1387 // https://bitbucket.org/sjodogne/orthanc/issues/140
1388 LOG(WARNING) << "Private creator should not be empty while creating a private tag: " << tag.Format(); 1388 LOG(WARNING) << "Private creator should not be empty while creating a private tag: " << tag.Format();
1389 } 1389 }
1390 1390
1391 #if DCMTK_VERSION_NUMBER >= 361 1391 #if DCMTK_VERSION_NUMBER >= 362
1392 DcmTag key(tag.GetGroup(), tag.GetElement()); 1392 DcmTag key(tag.GetGroup(), tag.GetElement());
1393 if (tag.IsPrivate()) 1393 if (tag.IsPrivate())
1394 { 1394 {
1395 return DcmItem::newDicomElement(key, privateCreator.c_str()); 1395 return DcmItem::newDicomElement(key, privateCreator.c_str());
1396 } 1396 }
1542 ok = element.putSint16(boost::lexical_cast<Sint16>(*decoded)).good(); 1542 ok = element.putSint16(boost::lexical_cast<Sint16>(*decoded)).good();
1543 break; 1543 break;
1544 } 1544 }
1545 1545
1546 case EVR_UL: // unsigned long 1546 case EVR_UL: // unsigned long
1547 #if DCMTK_VERSION_NUMBER >= 361 1547 #if DCMTK_VERSION_NUMBER >= 362
1548 case EVR_OL: // other long (requires byte-swapping) 1548 case EVR_OL: // other long (requires byte-swapping)
1549 #endif 1549 #endif
1550 { 1550 {
1551 ok = element.putUint32(boost::lexical_cast<Uint32>(*decoded)).good(); 1551 ok = element.putUint32(boost::lexical_cast<Uint32>(*decoded)).good();
1552 break; 1552 break;