Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.cpp @ 5252:742448a9b600
allow compilation of DICOM networking without support for transcoding
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 08 Apr 2023 11:38:01 +0200 |
parents | 0ea402b4d901 |
children | 3c8286e5d07b 7a20ee948676 |
comparison
equal
deleted
inserted
replaced
5245:b2de3a2ad3b9 | 5252:742448a9b600 |
---|---|
470 | 470 |
471 Store(sopClassUid, sopInstanceUid, *dicom, hasMoveOriginator, moveOriginatorAET, moveOriginatorID); | 471 Store(sopClassUid, sopInstanceUid, *dicom, hasMoveOriginator, moveOriginatorAET, moveOriginatorID); |
472 } | 472 } |
473 | 473 |
474 | 474 |
475 #if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1 | |
475 void DicomStoreUserConnection::LookupTranscoding(std::set<DicomTransferSyntax>& acceptedSyntaxes, | 476 void DicomStoreUserConnection::LookupTranscoding(std::set<DicomTransferSyntax>& acceptedSyntaxes, |
476 const std::string& sopClassUid, | 477 const std::string& sopClassUid, |
477 DicomTransferSyntax sourceSyntax, | 478 DicomTransferSyntax sourceSyntax, |
478 bool hasPreferred, | 479 bool hasPreferred, |
479 DicomTransferSyntax preferred) | 480 DicomTransferSyntax preferred) |
494 { | 495 { |
495 acceptedSyntaxes.insert(it->first); | 496 acceptedSyntaxes.insert(it->first); |
496 } | 497 } |
497 } | 498 } |
498 } | 499 } |
499 | 500 #endif |
500 | 501 |
502 | |
503 #if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1 | |
501 void DicomStoreUserConnection::Transcode(std::string& sopClassUid /* out */, | 504 void DicomStoreUserConnection::Transcode(std::string& sopClassUid /* out */, |
502 std::string& sopInstanceUid /* out */, | 505 std::string& sopInstanceUid /* out */, |
503 IDicomTranscoder& transcoder, | 506 IDicomTranscoder& transcoder, |
504 const void* buffer, | 507 const void* buffer, |
505 size_t size, | 508 size_t size, |
630 std::string(GetTransferSyntaxUid(sourceSyntax)) + | 633 std::string(GetTransferSyntaxUid(sourceSyntax)) + |
631 " to one of [" + s + " ]"); | 634 " to one of [" + s + " ]"); |
632 } | 635 } |
633 } | 636 } |
634 } | 637 } |
635 | 638 #endif |
636 | 639 |
640 | |
641 #if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1 | |
637 void DicomStoreUserConnection::Transcode(std::string& sopClassUid /* out */, | 642 void DicomStoreUserConnection::Transcode(std::string& sopClassUid /* out */, |
638 std::string& sopInstanceUid /* out */, | 643 std::string& sopInstanceUid /* out */, |
639 IDicomTranscoder& transcoder, | 644 IDicomTranscoder& transcoder, |
640 const void* buffer, | 645 const void* buffer, |
641 size_t size, | 646 size_t size, |
644 uint16_t moveOriginatorID) | 649 uint16_t moveOriginatorID) |
645 { | 650 { |
646 Transcode(sopClassUid, sopInstanceUid, transcoder, buffer, size, DicomTransferSyntax_LittleEndianExplicit, | 651 Transcode(sopClassUid, sopInstanceUid, transcoder, buffer, size, DicomTransferSyntax_LittleEndianExplicit, |
647 hasMoveOriginator, moveOriginatorAET, moveOriginatorID); | 652 hasMoveOriginator, moveOriginatorAET, moveOriginatorID); |
648 } | 653 } |
654 #endif | |
649 } | 655 } |