diff Core/DicomParsing/MemoryBufferTranscoder.h @ 3930:b99acc213937 transcoding

transcoder plugins and GDCM transcoding are working
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 14 May 2020 19:20:40 +0200
parents 7dc5e7e0045d
children aae045f802f4
line wrap: on
line diff
--- a/Core/DicomParsing/MemoryBufferTranscoder.h	Thu May 14 14:40:13 2020 +0200
+++ b/Core/DicomParsing/MemoryBufferTranscoder.h	Thu May 14 19:20:40 2020 +0200
@@ -33,26 +33,13 @@
 
 #pragma once
 
-#if !defined(ORTHANC_ENABLE_DCMTK_TRANSCODING)
-#  error Macro ORTHANC_ENABLE_DCMTK_TRANSCODING must be defined to use this file
-#endif
-
-#if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1
-#  include "DcmtkTranscoder.h"
-#endif
+#include "IDicomTranscoder.h"
 
 namespace Orthanc
 {
   // This is the basis class for transcoding plugins
   class MemoryBufferTranscoder : public IDicomTranscoder
   {
-  private:
-    bool  useDcmtk_;
-
-#if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1
-    DcmtkTranscoder  dcmtk_;
-#endif
-
   protected:
     virtual bool Transcode(std::string& target,
                            bool& hasSopInstanceUidChanged /* out */,
@@ -62,19 +49,6 @@
                            bool allowNewSopInstanceUid) = 0;
     
   public:
-    /**
-     * If "useDcmtk" is "true", the transcoder will first try and call
-     * DCMTK, before calling its own "Transcode()" implementation.
-     **/
-    MemoryBufferTranscoder();
-
-    void SetDcmtkUsed(bool used);
-
-    bool IsDcmtkUsed() const
-    {
-      return useDcmtk_;
-    }
-    
     virtual bool TranscodeParsedToBuffer(std::string& target /* out */,
                                          bool& hasSopInstanceUidChanged /* out */,
                                          DcmFileFormat& dicom /* in, possibly modified */,