comparison OrthancFramework/Sources/DicomParsing/DicomDirWriter.cpp @ 4471:b6818bbef7b8

patch of DCMTK 3.6.6 to fix value of "MediaStorageSOPClassUID" if writing DICOMDIR
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 26 Jan 2021 09:15:05 +0100
parents d9473bd5ed43
children 7053502fbf97
comparison
equal deleted inserted replaced
4470:06d164d8a0fd 4471:b6818bbef7b8
487 index_[key] = target; 487 index_[key] = target;
488 488
489 return true; // Newly created 489 return true; // Newly created
490 } 490 }
491 491
492 void Read(std::string& s) 492 void Write(std::string& s)
493 { 493 {
494 if (!GetDicomDir().write(DICOMDIR_DEFAULT_TRANSFERSYNTAX, 494 if (!GetDicomDir().write(DICOMDIR_DEFAULT_TRANSFERSYNTAX,
495 EET_UndefinedLength /*encodingType*/, 495 EET_UndefinedLength /*encodingType*/,
496 EGL_withoutGL /*groupLength*/).good()) 496 EGL_withoutGL /*groupLength*/).good())
497 { 497 {
572 } 572 }
573 } 573 }
574 574
575 void DicomDirWriter::Encode(std::string& target) 575 void DicomDirWriter::Encode(std::string& target)
576 { 576 {
577 pimpl_->Read(target); 577 pimpl_->Write(target);
578 } 578 }
579 579
580 580
581 void DicomDirWriter::EnableExtendedSopClass(bool enable) 581 void DicomDirWriter::EnableExtendedSopClass(bool enable)
582 { 582 {