comparison OrthancStone/Sources/Loaders/DicomResourcesLoader.cpp @ 1546:94750ef63ad5

support of Orthanc framework shared library
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2020 17:09:59 +0200
parents d3cafeef07bb
children 85e117739eca
comparison
equal deleted inserted replaced
1545:aee0f5f9cf71 1546:94750ef63ad5
532 532
533 std::set<Orthanc::DicomTag> ignoreTagLength; 533 std::set<Orthanc::DicomTag> ignoreTagLength;
534 ignoreTagLength.insert(Orthanc::DICOM_TAG_GRID_FRAME_OFFSET_VECTOR); // Needed for RT-DOSE 534 ignoreTagLength.insert(Orthanc::DICOM_TAG_GRID_FRAME_OFFSET_VECTOR); // Needed for RT-DOSE
535 535
536 Orthanc::DicomMap summary; 536 Orthanc::DicomMap summary;
537
538 #if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 7, 3)
537 message.GetDicom().ExtractDicomSummary(summary, ORTHANC_STONE_MAX_TAG_LENGTH, ignoreTagLength); 539 message.GetDicom().ExtractDicomSummary(summary, ORTHANC_STONE_MAX_TAG_LENGTH, ignoreTagLength);
540 #else
541 message.GetDicom().ExtractDicomSummary(summary, ignoreTagLength);
542 #endif
543
538 handler.GetTarget()->AddResource(summary); 544 handler.GetTarget()->AddResource(summary);
539 545
540 handler.BroadcastSuccess(); 546 handler.BroadcastSuccess();
541 } 547 }
542 } 548 }