diff Core/DicomParsing/IDicomTranscoder.h @ 3907:1555feda39e2 transcoding

substituting IDicomTranscoder::TranscodeToParsed() by refactored implementation
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 May 2020 11:24:34 +0200
parents f0dd5ded8927
children 89ebb37cee6a
line wrap: on
line diff
--- a/Core/DicomParsing/IDicomTranscoder.h	Fri May 08 11:16:16 2020 +0200
+++ b/Core/DicomParsing/IDicomTranscoder.h	Fri May 08 11:24:34 2020 +0200
@@ -62,18 +62,6 @@
                                    const std::set<DicomTransferSyntax>& allowedSyntaxes,
                                    bool allowNewSopInstanceUid) = 0;
 
-    /**
-     * Transcoding flavor that creates a new parsed DICOM file. A
-     * "std::set<>" is used to give the possible plugin the
-     * possibility to do a single parsing for all the possible
-     * transfer syntaxes.
-     **/
-    virtual DcmFileFormat* TranscodeToParsed(bool& hasSopInstanceUidChanged /* out */,
-                                             const void* buffer,
-                                             size_t size,
-                                             const std::set<DicomTransferSyntax>& allowedSyntaxes,
-                                             bool allowNewSopInstanceUid) = 0;
-    
     virtual bool HasInplaceTranscode(DicomTransferSyntax inputSyntax,
                                      const std::set<DicomTransferSyntax>& outputSyntaxes) const = 0;
 
@@ -122,9 +110,12 @@
     };
     
     /**
-     * This flavor is used by C-STORE.
+     * Transcoding flavor that creates a new parsed DICOM file. A
+     * "std::set<>" is used to give the possible plugin the
+     * possibility to do a single parsing for all the possible
+     * transfer syntaxes. This flavor is used by C-STORE.
      **/
-    virtual TranscodedDicom* TranscodeToParsed2(
+    virtual TranscodedDicom* TranscodeToParsed(
       DcmFileFormat& dicom /* in, possibly modified */,
       const void* buffer /* in, same DICOM file as "dicom" */,
       size_t size,