comparison Core/DicomParsing/MemoryBufferTranscoder.h @ 3929:7dc5e7e0045d transcoding

simplifying MemoryBufferTranscoder::Transcode() interface
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 14 May 2020 14:40:13 +0200
parents 1f71c2f20e16
children b99acc213937
comparison
equal deleted inserted replaced
3928:4cdc875510d1 3929:7dc5e7e0045d
53 DcmtkTranscoder dcmtk_; 53 DcmtkTranscoder dcmtk_;
54 #endif 54 #endif
55 55
56 protected: 56 protected:
57 virtual bool Transcode(std::string& target, 57 virtual bool Transcode(std::string& target,
58 DicomTransferSyntax& sourceSyntax /* out */,
59 DicomTransferSyntax& targetSyntax /* out */,
60 bool& hasSopInstanceUidChanged /* out */, 58 bool& hasSopInstanceUidChanged /* out */,
61 const void* buffer, 59 const void* buffer,
62 size_t size, 60 size_t size,
63 const std::set<DicomTransferSyntax>& allowedSyntaxes, 61 const std::set<DicomTransferSyntax>& allowedSyntaxes,
64 bool allowNewSopInstanceUid) = 0; 62 bool allowNewSopInstanceUid) = 0;
76 { 74 {
77 return useDcmtk_; 75 return useDcmtk_;
78 } 76 }
79 77
80 virtual bool TranscodeParsedToBuffer(std::string& target /* out */, 78 virtual bool TranscodeParsedToBuffer(std::string& target /* out */,
81 DicomTransferSyntax& sourceSyntax /* out */,
82 bool& hasSopInstanceUidChanged /* out */, 79 bool& hasSopInstanceUidChanged /* out */,
83 DcmFileFormat& dicom /* in, possibly modified */, 80 DcmFileFormat& dicom /* in, possibly modified */,
84 DicomTransferSyntax targetSyntax, 81 DicomTransferSyntax targetSyntax,
85 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE; 82 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
86 83