comparison Plugins/Samples/GdcmDecoder/GdcmDecoderCache.h @ 3768:6110a4995ace

replacing std::auto_ptr by std::unique_ptr in GDCM sample plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 17 Mar 2020 15:02:23 +0100
parents 94f4a18a79cc
children 7e33516965f8
comparison
equal deleted inserted replaced
3767:c6658187e4b1 3768:6110a4995ace
19 **/ 19 **/
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "../../../Core/Compatibility.h"
24 #include "GdcmImageDecoder.h" 25 #include "GdcmImageDecoder.h"
25 #include "OrthancImageWrapper.h" 26 #include "OrthancImageWrapper.h"
26 27
27 #include <boost/thread.hpp> 28 #include <boost/thread.hpp>
28 29
31 { 32 {
32 class GdcmDecoderCache : public boost::noncopyable 33 class GdcmDecoderCache : public boost::noncopyable
33 { 34 {
34 private: 35 private:
35 boost::mutex mutex_; 36 boost::mutex mutex_;
36 std::auto_ptr<OrthancPlugins::GdcmImageDecoder> decoder_; 37 std::unique_ptr<OrthancPlugins::GdcmImageDecoder> decoder_;
37 size_t size_; 38 size_t size_;
38 std::string md5_; 39 std::string md5_;
39 40
40 static std::string ComputeMd5(OrthancPluginContext* context, 41 static std::string ComputeMd5(OrthancPluginContext* context,
41 const void* dicom, 42 const void* dicom,