diff Framework/Toolbox/ParsedDicomFileCache.h @ 1136:42581a6182c8 broker

reactivation of the cache of parsed DICOM files
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Nov 2019 17:54:14 +0100
parents a8bf81756839
children 6333e6f7248e
line wrap: on
line diff
--- a/Framework/Toolbox/ParsedDicomFileCache.h	Wed Nov 06 17:34:58 2019 +0100
+++ b/Framework/Toolbox/ParsedDicomFileCache.h	Wed Nov 06 17:54:14 2019 +0100
@@ -24,8 +24,6 @@
 #include <Core/Cache/MemoryObjectCache.h>
 #include <Core/DicomParsing/ParsedDicomFile.h>
 
-#include <boost/shared_ptr.hpp>
-
 namespace OrthancStone
 {
   class ParsedDicomFileCache : public boost::noncopyable
@@ -42,7 +40,7 @@
     }
     
     void Acquire(const std::string& path,
-                 boost::shared_ptr<Orthanc::ParsedDicomFile> dicom,
+                 Orthanc::ParsedDicomFile* dicom,
                  size_t fileSize,
                  bool hasPixelData);
 
@@ -64,7 +62,7 @@
 
       bool HasPixelData() const;
 
-      boost::shared_ptr<Orthanc::ParsedDicomFile> GetDicom() const;
+      Orthanc::ParsedDicomFile& GetDicom() const;
 
       size_t GetFileSize() const;
     };