diff Framework/Oracle/ParseDicomFileCommand.h @ 1124:a8bf81756839 broker

unsuccessful attempt to cache ParseDicomFileCommand
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 Nov 2019 18:49:06 +0100
parents a08699daf78b
children 8e3763d1736a
line wrap: on
line diff
--- a/Framework/Oracle/ParseDicomFileCommand.h	Mon Nov 04 15:54:57 2019 +0100
+++ b/Framework/Oracle/ParseDicomFileCommand.h	Tue Nov 05 18:49:06 2019 +0100
@@ -48,24 +48,41 @@
     private:
       boost::shared_ptr<Orthanc::ParsedDicomFile>  dicom_;
       size_t                                       fileSize_;
+      bool                                         hasPixelData_;
       std::string                                  sopInstanceUid_;
 
+      void Setup();
+      
     public:
       SuccessMessage(const ParseDicomFileCommand& command,
-                     DcmFileFormat& content,
-                     size_t fileSize);
+                     DcmFileFormat& dicom,
+                     size_t fileSize,
+                     bool hasPixelData);
+      
+      SuccessMessage(const ParseDicomFileCommand& command,
+                     boost::shared_ptr<Orthanc::ParsedDicomFile> dicom,
+                     size_t fileSize,
+                     bool hasPixelData);
+      
+      boost::shared_ptr<Orthanc::ParsedDicomFile> GetDicom() const
+      {
+        return dicom_;
+      }
 
       size_t GetFileSize() const
       {
         return fileSize_;
       }
+
+      bool HasPixelData() const
+      {
+        return hasPixelData_;
+      }
       
       const std::string& GetSopInstanceUid() const
       {
         return sopInstanceUid_;
       }
-      
-      boost::shared_ptr<Orthanc::ParsedDicomFile> GetDicom() const;
     };
 
   private: