Mercurial > hg > orthanc
comparison Core/DicomNetworking/TimeoutDicomConnectionManager.h @ 3712:2a170a8f1faf
replacing std::auto_ptr by std::unique_ptr
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 02 Mar 2020 15:32:45 +0100 |
parents | 94f4a18a79cc |
children | d729d6e8b484 |
comparison
equal
deleted
inserted
replaced
3709:1f4910999fe7 | 3712:2a170a8f1faf |
---|---|
61 }; | 61 }; |
62 } | 62 } |
63 | 63 |
64 #else | 64 #else |
65 | 65 |
66 #include "../Compatibility.h" | |
67 | |
66 #include <boost/date_time/posix_time/posix_time.hpp> | 68 #include <boost/date_time/posix_time/posix_time.hpp> |
67 | 69 |
68 namespace Orthanc | 70 namespace Orthanc |
69 { | 71 { |
70 class TimeoutDicomConnectionManager : public IDicomConnectionManager | 72 class TimeoutDicomConnectionManager : public IDicomConnectionManager |
71 { | 73 { |
72 private: | 74 private: |
73 class Resource; | 75 class Resource; |
74 | 76 |
75 std::auto_ptr<DicomUserConnection> connection_; | 77 std::unique_ptr<DicomUserConnection> connection_; |
76 boost::posix_time::ptime lastUse_; | 78 boost::posix_time::ptime lastUse_; |
77 boost::posix_time::time_duration timeout_; | 79 boost::posix_time::time_duration timeout_; |
78 | 80 |
79 void Touch(); | 81 void Touch(); |
80 | 82 |
81 void CheckTimeoutInternal(); | 83 void CheckTimeoutInternal(); |
82 | 84 |